python/amusement_park_alternate.py

12 lines
132 B
Python

age = 12
if age < 4:
price = 0
elif age < 18:
price = 25
else:
price = 40
print(f"Your admission price is ${price}")