Skip to content

Instantly share code, notes, and snippets.

@acrymble
Created July 5, 2011 19:18
Show Gist options
  • Save acrymble/1065631 to your computer and use it in GitHub Desktop.
Save acrymble/1065631 to your computer and use it in GitHub Desktop.
Python Dictionary
d = {'world': 1, 'hello': 0}
print d['hello']
-> 0
print d['world']
-> 1
print d.keys()
-> ['world', 'hello']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment