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(
for i, (x, y) in enumerate(zip(data1, data2)):
In Python 2.x, you might want to use itertools.izip instead of zip, esp. for very long lists.
itertools.izip
zip