So I have this loop figured out but with values over 10, the program double prints how much the ticket cost. What is wrong with my code?
age = input("Enter your age to get ticket prices: ")
for ages in age:
ages = int(age)
if ages < 3:
print("Your ticket is free!")
if 3 <= ages <= 12:
print("Your ticket is $10")
if ages > 12:
print("Your ticket is $15")
I was only expecting a single print of whatever print() statement I have set.