6.3k views
1 vote
013 Ask the user to enter a number that is under 20. If they enter a number that is 20 or more, display the message "Too high", otherwise display "Thank you".​

1 Answer

6 votes

num = int(input("Please enter a number below 20: "))

if num >= 20:

print("Too high")

else:

print("Thank you")

User Twotwotwo
by
7.3k points