Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
__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
You can’t perform that action at this time.