Multiple tuples for one for statement

Ivan Van Laningham ivanlan at pauahtun.org
Mon Apr 25 09:34:13 EDT 2005


Hi All--

"R. C. James Harlow" wrote:
> 
> or just:
> 
> for a,b,c in (tup1, tup2, tup3):
>     print a
>     print b
>     print c
> 

And this works in Python version???

Metta,
Ivan
----------------------------------------------
Ivan Van Laningham
God N Locomotive Works
http://www.andi-holmes.com/
http://www.foretec.com/python/workshops/1998-11/proceedings.html
Army Signal Corps:  Cu Chi, Class of '70
Author:  Teach Yourself Python in 24 Hours



More information about the Python-list mailing list