x = 0
while x < 3:
    print(x)
    x += 1

for x in range(0, 3):
    print(x)
    
#https://pt.stackoverflow.com/q/165530/101