0
do {} while () in python
How can i replace do {} while () in C++ for Python3?
4 Answers
+ 7
Try a 'while' loop with a 'if' to bail out from, probably something like this:
while True:
# whatever you want here
if some_condition:
break
+ 3
You're welcome, glad if it helps : )
+ 2
Thank you.
0
or dont use "while True:" and use "while X:" # X = loop condition