x = 9 # Declare a variable x and assighn a value 9
while x < 10: # while x less then 10
print (x) # print x
x+=1 # x increment
x = 3
while x < 10:
print(x)
if x == 5:
break
x += 1
3 4 5
x = 0
while x < 10:
x += 1
if x == 5:
continue
print(x)
1 2 3 4 6 7 8 9 10
x = 1
while x < 10:
print(x)
x += 1
else:
print("x is no less than 10")
1 2 3 4 5 6 7 8 9 x is no less than 10