86,040 views
16 votes
16 votes
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".​

User Travis Jensen
by
3.1k points

1 Answer

28 votes
28 votes

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

if num >= 20:

print("Too high")

else:

print("Thank you")

User Haonan Chen
by
2.7k points