5 ответов
+ 2
Official stance/justification: "Users of the language are advised to use the while-True form with an inner if-break when a do-while loop would have been appropriate."
You can use this instead:
while True:
# statements
if fail_condition:
break
+ 1
I think do...while is useless. i mean just think about it,
useless
0
Thanks for your supports