[Tutor] Loops
Joseph J. Strout
joe@strout.net
Tue, 28 Sep 1999 15:00:11 -0700
At 6:46 PM -0300 09/28/99, Alexandre Passos wrote:
>I know vary well that python´s got for and while loops. I´d like to
>know if python´s got the following loops:
>-Do-Until (until)
Nope. Instead of...
do:
foo(bar)
until bar==42
(which isn't legal), try this...
while 1:
foo(bar)
if bar==42: break
>-Goto, jump
Goodness no! These are Evil, and Python is Good.
Cheers,
-- Joe
,------------------------------------------------------------------.
| Joseph J. Strout Biocomputing -- The Salk Institute |
| joe@strout.net http://www.strout.net |
`------------------------------------------------------------------'