While loop in python
x = int(input("Enter times of print: "))
y = input("Enter the text: ")
i = 0
while i<x:
if i == 10:
print("love")
i= i+1
continue
elif i == 20:
print("I am unable to print more the this")
i=i+1
break
print(str(i)+":",y)
i=i+1
Comments
Post a Comment