#Sample 1 of while loop
x = 0
while x < 10:
    print("value of x is", x)
    x = x + 1

list1 = []

#Sample 2 of while loop, to fill the list
while x < 20:
    list1.append(x*x)
    x = x + 1
print(list1)
