tickets = {
'prices': {
'baby': 'free',
'toddler': '$10',
'teenager': '$15',
}
}
active = True
while active:
age = input("Please enter your age")
if age == 'exit':
active = False
elif int(age) >= 0 and int(age) < 3:
for key, value in tickets.items():
print(f"The ticket costs {value['baby']}, because you are a baby")