+ 2
What is the use of while ?
4 odpowiedzi
+ 3
To repeat some statements as long as a condition is satisfied.
+ 2
If you are asking the use of while loop in Python,click the link. You should make sure that the condition of the while loop will become false eventually or else it eill be an infinite loop.
https://www.sololearn.com/discuss/1937527/?ref=app
0
Almost same like for loop. Do something repeatly as long as condition is true.
0
a “do while” loop is a sort of while loop, but executes at least once. the condition are checked at the end of the loop, not before like a while or for loop.
not all languages have a do while loop