for loop question

Daniel Haus daniel.haus at gmail.com
Thu Jul 6 18:01:44 EDT 2006


> Except that in the OP's example foo was a sequence, not an
> integer.  I think.

Yes, possibly. But then, what's "from 2 to foo"?

this way it might be

for a in [2] + foo:
    print a




More information about the Python-list mailing list