12 lines
171 B
Python
12 lines
171 B
Python
age = 12
|
|
|
|
if age < 4:
|
|
price = 0
|
|
elif age < 18:
|
|
price = 25
|
|
elif age < 65:
|
|
price = 40
|
|
elif age >= 65:
|
|
price = 20
|
|
|
|
print(f"Your admission cost is ${price}.")
|