Loop in Python


#Loop Example

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

for i in range(1,6):
    print(i)

Comments