while loops pysthon code example
Example 1: while loop python
while (condition):
doThis();
Example 2: Python While Loops
i = 1
while i < 6:
print(i)
if i == 3:
break
i += 1
while (condition):
doThis();
i = 1
while i < 6:
print(i)
if i == 3:
break
i += 1