Skip to content

Instantly share code, notes, and snippets.

@KennethWilke
Created March 4, 2016 22:21
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 KennethWilke/5c7407e276b58820f17c to your computer and use it in GitHub Desktop.
Save KennethWilke/5c7407e276b58820f17c to your computer and use it in GitHub Desktop.
ages = {'John': 23,
'Bailey': 36,
'George': 12}
for name, age in ages.iteritems():
print "{0} is {1} years old".format(name, age)
Bailey is 36 years old
John is 23 years old
George is 12 years old
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment