I would like to iterate + enumerate over two lists in Python. The following code looks ugly. Is there any better solution?
for id, elements in enumerate(itertools.izip(as, bs)):
a = elements[0]
b = elements[1]
# do something with id, a and b
Thank you.