Re: is it possible to traverse two lists simulatenously using python

2009-05-01 Thread Terry Reedy
mobiledream...@gmail.com wrote: Python for i,j in topgirls, richgirls: print i,j for i,y in zip(a,b): ... -- http://mail.python.org/mailman/listinfo/python-list

Re: is it possible to traverse two lists simulatenously using python

2009-05-01 Thread Daniel Fetchinson
> Python > for i,j in topgirls, richgirls: > print i,j for i, j in zip( topgirls, richgirls ): print i,j HTH, Daniel > Cheetah > #for $i,$j in $topgirls, $richgirls$i, $j > #end for > This doesnt work -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.pyt

Re: is it possible to traverse two lists simulatenously using python

2009-05-01 Thread Berkin Malkoc
You should be looking for "zip".. On Thu, Apr 30, 2009 at 9:31 AM, wrote: > Python > for i,j in topgirls, richgirls: > print i,j > > Cheetah > #for $i,$j in $topgirls, $richgirls > $i, $j > #end for > This doesnt work > > -- > Bidegg worlds best auction site > http://bidegg.com > > -- > http