else clauses in while and for loops
Tomek Lisowski
Lisowski.Tomasz at sssa.nospam.pl
Sat Mar 25 03:10:33 EST 2000
Hi!
Which is the reason for else clauses in while and for loops? At the first
look it seems, that the statements in the else suit is executed always after
processing the loop. Wouldn't it be simpler, if I just put those statements
after the loop, and omit the else clause completely?
Please give some examples showing the real need for else clauses in this
context.
Thanks in advance
Tomasz Lisowski
More information about the Python-list
mailing list