EXECing multiple lines.

Joonas Paalasmaa joonas at olen.to
Tue Jun 12 01:41:34 EDT 2001


Bjorn Pettersen wrote:

> > >>> exec """for x in range(5):
> >     print x"""
    ^^^^
> You need to indent the line "print x".

It is intended. See the whitespace.



More information about the Python-list mailing list