Build a Movie Ticket Booking Calculator - Step 4

Tell us what’s happening:

The instructions for Step 4 only mention checking age >= 21, but the tests seem to require additional logic not described (e.g. another if condition). Code that follows the instructions exactly does not pass unless extra conditions are added, which makes the step unclear and confusing.

Your code so far

base_price = 15
age = 21
seat_type = 'Gold'
show_time = 'Evening'

if age > 17:
    print('User is eligible to book a ticket')

if age >= 21:
    print('User is eligible for Evening shows')

# User Editable Region



# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Build a Movie Ticket Booking Calculator - Step 4

Your code looks fine. What additional logic are you referring to?