Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Allwin12
Created January 22, 2020 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Allwin12/52990e06f9a0cc78fad2a37fd4b8c83f to your computer and use it in GitHub Desktop.
Save Allwin12/52990e06f9a0cc78fad2a37fd4b8c83f to your computer and use it in GitHub Desktop.
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