+ 1
Why there is no "do while" loop in python?
2 Answers
+ 3
Because the designer didn't implement it.
I guess it's for the sake of simplicity; for example increment operators are also not available.
Instead of something like:
do
cin >> inp;
while(cin!=whatever);
... you would write:
while True:
int = input()
if condition:
break