tickets prices baby free toddler 10 teenager 15 active True while acti

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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")