LOOP wisdom found (was: do...until wisdom found)...
Courageous
jkraska1 at san.rr.com
Wed Apr 18 02:05:12 EDT 2001
>(Make believe a newbie is learning to program computers.) "break"-- well? What
>does this mean? "If I type 'break', will it crash the computer?" The keyword
>"break" is a "hold-over" from a previous language.
>
>Now, a loop "in the _nature_ of a while loop" would look like this:
>
># do the test before the body, just like "while"--
>loop:
> if condition: leave
Well, if I were writing some new language, I might favor:
loop:
if [condition]: stop-looping
... or some other EXTREMELY CLEAR idiom.
C//
More information about the Python-list
mailing list