In [ ]:
for i in range(10):
print(i)
In [ ]:
for i in range(15):
print(i)
In [ ]:
for i in range(11):
print(i)
In [ ]:
In [ ]:
for i in range(10):
if i > 5:
print(i)
In [ ]:
for i in range(10):
if i > 5:
print(i)
In [ ]:
for i in range(10):
if i > 5:
break
print(i)
In [ ]:
for i in range(10):
print("HERE")
if i > 5:
continue
print(i)
In [ ]:
x = 0
for i in range(1,100001):
x = x + i
if x > 30000:
break
In [ ]:
x = 1
while x < 10:
print(x)
x = x + 1
In [ ]:
x = 1000
while x > 100:
print(x)
x = x - 10
In [ ]:
x = 0
while x < 20:
print(x*x)
x = x + 1
In [ ]:
In [ ]: