+ 9

Is there a reason why the do-while (repeat-until) loop is not native implemented in py?

Which is the best way to fill in for it?

13th May 2018, 8:59 PM
Dario
Dario - avatar
2 Réponses
+ 13
I usually initialize the loop as infinite and break if the condition is not met. Serves the same after the first cycle.
13th May 2018, 9:11 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 5
Thanks to all of you for the Giga-fast answer.
13th May 2018, 9:21 PM
Dario
Dario - avatar