is it possible to traverse two lists simulatenously using python

Daniel Fetchinson fetchinson at googlemail.com
Fri May 1 19:18:09 EDT 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