define loop statement?

David Isaac aisaac0 at verizon.net
Thu Feb 16 15:05:37 EST 2006


I would like to be able to define a loop statement
(nevermind why) so that I can write something like

loop 10:
    do_something

instead of

for i in range(10):
    do_something

Possible?  If so, how?

Thanks,
Alan Isaac





More information about the Python-list mailing list