+ 1

Do while

Syntex for do while loop in python

17th Feb 2018, 3:43 PM
dhanasekar k
dhanasekar k - avatar
2 ответов
+ 3
Do while loop does not exist in python as I know. This might help you https://coderwall.com/p/q_rd1q/emulate-do-while-loop-in-python Scroll down little bit to see "Emulating do-while in Python"
17th Feb 2018, 3:54 PM
Sad
Sad - avatar
+ 11
there is no do while in python you can emulate it but there is no actual syntax: do: do something... while <condition> ^^^^^^^^^^^^^^^^^^ does not exists in python as suggested in the link, you can do the following while True: do something if <condition>: break https://www.daniweb.com/programming/software-development/threads/39804/do-while-loop-in-python#
17th Feb 2018, 3:52 PM
Burey
Burey - avatar