Created
August 15, 2012 13:22
-
-
Save samuell/3360083 to your computer and use it in GitHub Desktop.
Loop over keys and values of an array in python
This file contains hidden or 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
my_arr = ["ugh", "cough", "humm"] | |
for key, value in enumerate(my_arr): | |
print "%s : %s" % (key, value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment