Multiple tuples for one for statement
Ivan Van Laningham
ivanlan at pauahtun.org
Mon Apr 25 13:32:24 EDT 2005
Peter Hansen wrote:
>
> Ivan Van Laningham wrote:
> > I can see that now. I had three hours sleep last night and my brain
> > hurts, so I don't get it. I seek enlightenment.
>
> So do I: did you mean you don't even "get" what
> my code is doing...?
Yes. I barely remember my own name right now.
>
> (My sample works only because I created tuples that
> had exactly three items each, of course. It's the
> same as your previous code which didn't work, except
> for the number of elements in each tuple. I wrote
> it just to show that R.C.James's idea was a reasonable,
> if probably mistaken, interpretation of the OP's request.)
>
I worked out that the a,b,c must match the length of the tuples. The
fog past that point is too dense.
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