In [ ]:
i = 0
while i < 10:
    i += 1
    print i
In [ ]:
i = 0
while i < 10:
    print i
    i += 1
In [ ]:
i = 0
while i < 10:
    i += 2
    print i
In [ ]:
i = 0
while i < 10:
    print i
    i += 3
In [ ]:
x = 'hello world'
i = 0
while i < len(x):
    print x[i]
    i += 1
In [ ]:
i = 0
while i < 100:
    if (i + 1) % 10 == 0:
        break
    print i
    i += 1
In [ ]:
x = ['strawberry', 'mango', 'pineapple', 'kiwi']
i = 0
while i < len(x):
    print x[i]
    i += 1
In [ ]:
i = 0
while True:
    if i == 10:
        break
    print i
    i += 1
In [ ]:
i = 0
while True:
    if (i + 1) % 10 == 0:
        break
    print i
    i += 1
In [ ]:
my_bool = True
i = 0
while my_bool:
    my_bool = i < 10
    print i
    i += 2
In [ ]:
x = []
my_bool = True
i = 0
while my_bool:
    my_bool = i < 20
    x += [i * 3]
    i += 3
print x
In [ ]:
i = 0
counter = 0
while i < 100:
    i += 1
    if counter >= 3:
        break
    if (i + 1) % 4 == 0:
        counter += 1
        continue
    print i