Created
January 22, 2020 05:26
-
-
Save Allwin12/52990e06f9a0cc78fad2a37fd4b8c83f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mock_data = { | |
"id": 1, | |
"first_name": "Cory", | |
"last_name": "Schimmang", | |
"email": "cschimmang0@skype.com", | |
"gender": "Female", | |
"ip_address": "186.239.104.33" | |
} | |
for x in mock_data.items(): | |
print(x) | |
""" | |
('id', 1) | |
('first_name', 'Cory') | |
('last_name', 'Schimmang') | |
('email', 'cschimmang0@skype.com') | |
('gender', 'Female') | |
('ip_address', '186.239.104.33') | |
""" | |
for k,v in mock_data.items(): | |
print(k,v) | |
""" | |
id 1 | |
first_name Cory | |
last_name Schimmang | |
email cschimmang0@skype.com | |
gender Female | |
ip_address 186.239.104.33 | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment