Created
January 10, 2015 21:46
-
-
Save rajaramanathan/37bc9c33eca6b7bb63b2 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
__author__ = 'Raja Ramanathan' | |
seq = ['Grapes','Apple','Oranges'] | |
for index,item in enumerate(seq): | |
print index,item | |
#prints 0 Grapes | |
#prints 1 Apple | |
#prints 2 Oranges |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment