+ 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.
4 Respuestas
+ 6
while(<this is True>):
#this happens
#something that might make it False or break
+ 2
Omg thanks
+ 2
With the while loop we can execute a set of statements as long as a condition is true.
+ 2
i = 1
while i < 6:
print(i)
i += 1
try this example