top-level loops
Karl Scalet
news at yebu.de
Thu Oct 9 04:00:17 EDT 2003
Stefan wrote:
> I am writing a program (code included) and I would like to comment out
> the two top-level loops and run the code that is under it regularly,
> however, because the following code is not indented properly the
> interpreter chokes. Is there a way around this?
>
either follow Camerons suggestion :-) or:
for x in (1,2,3):
for y in (4,5,6):
print 'Run it'
change to:
if """
for x in (1,2,3):
for y in (4,5,6):
""":
print 'Run it'
But very likely there are other and probably better solutions.
Karl
More information about the Python-list
mailing list