News for hackers. Stuff that matters.
Re:Python idioms by masklinn on Sunday June 12, 2011 @04:40PM (#2647349)
> I would just use

> for idx, (elt1, elt2) in enumerate(zip(list_1, list_2))

or use itertools.count:

    for idx, elt1, elt2 in zip(count(), list_1, list_2)

There are no comments on this comment yet.