Logo

Programming-Idioms

History of Idiom 78 > diff from v32 to v33

Edit summary for version 33 by :

Version 32

2015-10-29, 14:05:16

Version 33

2015-10-31, 15:03:50

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Idiom #78 "do while" loop

Execute a block once, then execute it again as long as boolean condition c is true.

Code
while True:
    do_something()
    if not c:
        break