Using While Loop in Python
Code>
#using while loop in python
i = 1
while i <= 10:
    print(i)
    i += 1
else:
    print("loop completed")
February 06, 2019 Davinder
#using while loop in python
i = 1
while i <= 10:
    print(i)
    i += 1
else:
    print("loop completed")