How do I enumerate two lists of equal length simultaneously? I am sure there must be a more pythonic way to do the following:
for index, value1 in enumerate(data1):
print index, value1 + data2[index]
I want to use the index and data1[index] and data2[index] inside the for loop.
zip(data1, data2).index(val1, val2)
– Yclept