Preview:
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.")
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter