Program - Usage of while


Topic: Program - Usage of while

Solution

i = 0
while i < 2:
    print(i)
    i += 1
else:
    print('in else')



List all Python Programs