is it possible to traverse two lists simulatenously using python

Daniel Fetchinson fetchinson at googlemail.com
Sat May 2 01:18:09 CEST 2009


> 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



More information about the Python-list mailing list