Python Newbie

Larry Hudson orgnut at
Sun Feb 24 05:20:38 CET 2013

On 02/23/2013 03:46 PM, piterrr.dolinski at wrote:
> Hi all,
> ... I have discovered today there is no do...while type loop. [Sigh]
No biggie.  This is easily simulated with:

while True:
     if <exit condition>:

Less easily simulated is the lack of a switch/case structure.  This has to be done with a less 
convenient extended if/elif/.../else structure.

> Peter

      -=- Larry -=-

More information about the Python-list mailing list