Python Newbie

Larry Hudson orgnut at yahoo.com
Sat Feb 23 23:20:38 EST 2013


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

while True:
     ...
     if <exit condition>:
         break

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