SZanlongo
9/18/2014 - 2:00 AM

Enumerate items in list

Enumerate items in list

# https://stackoverflow.com/questions/691946/short-and-useful-python-snippets
# Allows you to have access to the indexes of the elements within a for loop
l = ['a', 'b', 'c', 'd', 'e', 'f']
for (index, value) in enumerate(l):
    print index, value