Created
September 27, 2013 10:48
-
-
Save packetforger/6726865 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
#!/usr/bin/python2 | |
# really awful dict example | |
import sys | |
dict = { | |
"cat": "meow", | |
"dog": "woof", | |
"rat": "squeak" | |
} | |
x = dict[sys.argv[1]] | |
print x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment