is it possible to traverse two lists simulatenously using python

Berkin Malkoc malkocb at gmail.com
Fri May 1 19:04:04 EDT 2009


You should be looking for "zip"..

On Thu, Apr 30, 2009 at 9:31 AM,  <mobiledreamers at gmail.com> 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://mail.python.org/mailman/listinfo/python-list
>
>



More information about the Python-list mailing list