Roller coaster
Mon Sep 25 2023 19:08:35 GMT+0000 (Coordinated Universal Time)
Saved by
@Duhita0209
print("Welcome to the rollercoaster!")
height = int(input("What is your height in cm? "))
if height > 120:
age = int(input("What is your age?"))
if age < 12:
bill = 5
elif age <= 18:
bill = 7
elif age >= 45 and age <= 55:
bill = 0
elif age > 18:
bill = 12
want_photos = input("Do you want photos type Y or N.")
if want_photos == "Y":
bill += 3
print(f"The final bill is ${bill}.")
else:
print(f"The final bill is ${bill}")
else:
print("Sorry you have to grow taller before you can ride.")
content_copyCOPY
Comments