Build a Movie Ticket Booking Calculator - Step 12

Tell us what’s happening:

What am I missing?

extra_charges = 0

if is_weekend == True:
extra_charges + 2
print(‘Extra charges will be applied’)

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 = False
is_weekend = False

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


# User Editable Region

extra_charges = 0

if is_weekend == True:
    extra_charges + 2
print('Extra charges will be applied')

# 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/143.0.0.0 Safari/537.36 OPR/127.0.0.0

Challenge Information:

Build a Movie Ticket Booking Calculator - Step 12

Add this print to your code to test it

extra_charges = 0

if is_weekend == True:
    extra_charges + 2
print(extra_charges)
print('Extra charges will be applied')

(You will also need to set is_weekend to True)

update the extra_charges value to 2

It doesn’t say to “add 2”

Still no luck with changes

What change did you make? What I suggested was to help you see the problem, not solve it.

Changed the “is_weekend” to True and updating extra_charges to 2

Please share your updated code

Do you see what value is bring printed for extra_charges? It’s not 2, correct?

you need to update the variable of extra charges not add the literal value of it to 2

also the if is weekend == true, you are on the right path but the if statement has a generic value of true you can treat the if function as (if (YourVariable) True) by default. also If i remember correctly the instructions also ask for an if condition for showtime that wants the same value as is weekend. You can combine them together and then use your == operator to get the code to run properly.

Hope I explained this well I am also very new.