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". _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor