0
While and If statement
In python, is it possible to write an if-statement inside a while loop? If yes, how can I do that?
2 Answers
+ 8
while True:
i += 1
if i == 8:
break
print(i)
0
Wow thanks!!
In python, is it possible to write an if-statement inside a while loop? If yes, how can I do that?