Multiple tuples for one for statement
R. C. James Harlow
james at wrong.nu
Mon Apr 25 09:57:24 EDT 2005
On Monday 25 April 2005 14:34, Ivan Van Laningham wrote:
> 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???
Ah, reading the replies to the original post, this works but doesn't give the
result that the original poster wanted.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20050425/a0139ace/attachment.sig>
More information about the Python-list
mailing list