zip unzip?

KraftDiner bobrien18 at yahoo.com
Thu Dec 29 07:09:08 CET 2005


I have two lists...

a=[1,2,3]
b=[4,5,6]

n=0
for i in a:
   print i, b[n]
   n=n+1

how can i have two iterators on my for loop?
rather than have to use the counter n?
like:
for i,j in a,b:
   print i, j

Do you know what I mean?




More information about the Python-list mailing list