n = 0
while n < 10:
print(n)
n = n + 3
output:
0
3
6
9
while True:
print("Hello")
output :
helloworld
prints continuously
while n < 10:
print(n)
n = n + 3
output:
0
3
6
9
while True:
print("Hello")
output :
helloworld
prints continuously
No comments:
Post a Comment