Posted on

Using While Loop in Python


Code>





#using while loop in python

i = 1
while i <= 10:
print(i)
i += 1

else:
print(“loop completed”)






Write a comment