do-while loop?

Peter Bittner bittneph at aston.ac.uk
Thu Mar 23 21:57:44 EST 2000


Hello!

I'm missing a 'do-while' statement in Python.
There's only 'for' and 'while' available, but how do I implement a loop
that has to be executed at least once?
Do I have to go the ungly way and state the same code before the loop?

Peter         ---> Please, e-mail: bittneph at aston.ac.uk

| Peter H. Bittner
| International Student at Aston University
| e-mail: bittneph at aston.ac.uk
| web: http://beam.to/bimbo
+--------------------------



More information about the Python-list mailing list