+ 2

(PYTHON) Can someone explain in the comment on how to use while loop.

Im bad at while loop because all the example I try from this help is useless, so yeah help me.

15th Nov 2021, 11:47 PM
Idris
Idris - avatar
4 ответов
+ 6
while(<this is True>): #this happens #something that might make it False or break
15th Nov 2021, 11:54 PM
Slick
Slick - avatar
+ 2
Omg thanks
15th Nov 2021, 11:55 PM
Idris
Idris - avatar
+ 2
With the while loop we can execute a set of statements as long as a condition is true.
16th Nov 2021, 11:00 AM
Simbarashe Deke
Simbarashe Deke - avatar
+ 2
i = 1 while i < 6: print(i) i += 1 try this example
16th Nov 2021, 11:01 AM
Simbarashe Deke
Simbarashe Deke - avatar