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
You can’t perform that action at this time.