Build a Movie Ticket Booking Calculator - Step 10

Tell us what’s happening:

if is_member:
    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:
    discount = 3
    print('User is qualified for membership discount')

Your code so far

py

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:
    discount = 3
    print('User is qualified for membership discount')


Your browser information:

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

Challenge Information:

Build a Movie Ticket Booking Calculator - Step 10

You are along the right lines but you need to add to the code that is already there. You seem to have repeated existing code. I suggest you reset the step and only add what is asked for, adjusting the existing code. If you are still having problems please reply to this thread and post all your updated code.

When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add the backticks.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

am still having issues please help

Can you post your current code please in a reply to this comment. Your code posted above is different so I don’t know what is your current code. Have another go, only work on line 18 of hte code, don’t change or add to any of the other lines. Reset the step first to get the seed code back.

Please open your own thread.

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.