Python Quiz 4 ---

 Python Quiz 4 ---

Q- Write down a program, which will take input from users, until the number is greater than 100, if the number is greater than 100; it will print 'Congratulations', else the loops has to continue by printing 'Try Again' """

CODE

while (1):
num = int(input("Type your Number \n"))
if num>100:
print("Congratulations")
break
else:
print("Try Again \n")
continue

Comments

Popular posts from this blog

Python Exercise 7 --- "Snake, Water, Gun"

Python Tutorial 38 --- "Self & __init__() (Constructors)(OOPS 3)"

Python Exercise 4 --- "Number Guessing Game"