I write a lot of code that looks like this:
for myElement, elementIndex in zip( elementList,
range(len(elementList))):
print "myElement ", myElement, " at index: ",elementIndexMy question is, is there a better, cleaner, or easier way to get at the element in a list AND the index of a loop than this? TIA, Andrew -- http://mail.python.org/mailman/listinfo/python-list
