spock
6/11/2017 - 11:28 AM

Enumerate with zip

Enumerate with zip

alist = ['a1', 'a2', 'a3']
blist = ['b1', 'b2', 'b3']

for i, (a, b) in enumerate(zip(alist, blist)):
    print i, a, b