Looping on more than one list
Aahz Maruch
aahz at netcom.com
Sat Jul 22 22:15:03 EDT 2000
In article <3979C6F4.B1FF1800 at atlsci.com>,
ahmed Bouferguene <aboufer at atlsci.com> wrote:
>
> Do no know much of python, but I am wondering whether it is possible
>to loop
>on more than one list, something like,
>
>a = [1,2,34]
>b=["a", "b", "d"]
>
>for x in a, y in b :
> print x, y
Not currently. Look at all the threads about zip(), marry(), braid(),
etc.
--
--- Aahz (Copyright 2000 by aahz at netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Zie is so far from a clue that it would take a sub-light vessel several
years to reach one. --Aahz
More information about the Python-list
mailing list