Build a Movie Ticket Booking Calculator - Step 10

Tell us what’s happening:

i have trying so hard lately to solve have already tried everything still cant find out where i am making this mistake

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')
else:
    print('User is not eligible for Evening shows')

is_member = True
is_weekend = False

discount = 0
# User Editable Region
if is_member:
# User Editable Region
    discount = 3
    print('User qualifies for membership discount')
else:
    print('User does not qualify for membership discount')
print('Discount:', discount)
if is_member and age >= 21:
    pass

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 OPR/131.0.0.0 (Edition ms_store)

Challenge Information:

Build a Movie Ticket Booking Calculator - Step 10

GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/workshop-movie-ticket-booking-calculator/6960a5165f7efe52a0c0aa39.md at main · freeCodeCamp/freeCodeCamp · GitHub

Welcome to the forum @fatimaplayyz,

Update the condition of the if is_member: line by using the and operator to combine the existing condition with another condition checking if age is greater than or equal to 21.

The instructions ask you to update the if statement already written in the starting code. Instead, you added another if statement. You may want to reset this step and try again.

Happy coding