[Tutor] repeat
bob gailer
bgailer at alum.rpi.edu
Sat Nov 17 14:03:45 CET 2007
Michael wrote:
> Hi All
>
> This has probably been asked before but can I get some clarification on
> why Python does not have a repeat...until statement, and does that mean
> repeat...until is bad practice? I was trying to get Python on the
> standard langauge list for my state secondary school system but they say
> a langauge must have a test last structure in it to be considered.
>
That rules out FORTRAN!
And I would point out (as one of us already did):
while True:
blahblah
if condition: break
Is a test-last structure.
Of course some purists will object to "break" since it is a "goto in
disguise".
More information about the Tutor
mailing list