lambdamusic
2/7/2013 - 9:26 PM

Python: Iterating over multiple sequences at the same time

Python: Iterating over multiple sequences at the same time

for i, j, q in [1, 2, 3], [4, 5, 6], [7, 8, 9]:
    print 'i =',  i
    print 'j = ', j
    print 'q =', q