castironpi at castironpi at
Sat Mar 8 21:27:14 CET 2008

> The idea of the if-else is:
> .  depending on some condition either do this or do something else,
> .  don't do them both.

yes = the loop completed.

'else' isn't rechecking a piece of the loop, it's checking the loop.
Does it test successfully--- not the loop condition, the loop?  What
is 'if a loop'?  Make sense, I hold it does.  (Holding is good--
something I can drop and give to someone else.)  If 'else' gets hit, I
didn't do the loop.

More information about the Python-list mailing list