Skip to content

Instantly share code, notes, and snippets.

@rajaramanathan
Created January 10, 2015 21:46
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 rajaramanathan/37bc9c33eca6b7bb63b2 to your computer and use it in GitHub Desktop.
Save rajaramanathan/37bc9c33eca6b7bb63b2 to your computer and use it in GitHub Desktop.
__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