As seen in the code I am trying to convert the fee integer into a string to prevent a ValueError. I only want to display the message "That's not your real age mate," when the user inputs a negative number, a number >100, or a string.
active = True
while active:
print("How old are you?")
fee = int(input())
#Checks age of user to determine the price of a movie ticket
if 0 <= fee <= 3:
print("You're free mate")
active = False
elif 4 <= fee <= 12:
print("$10 please!")
active = False
elif 13 <= fee <= 64:
print("$15 please!")
active = False
elif 65 <= fee <= 100:
print("$10 please!")
active = False
#convert negative numbers or letters into strings as to not cause a ValueError $ restart the while loop
else:
fee = str(fee)
print("That's not your real age mate")
continue