Build a Movie Ticket Booking Calculator - Step 9

Tell us what’s happening:

am i missing something here? someone please explain to me

Thank you.

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

# User Editable Region


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

# 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/145.0.0.0 Safari/537.36

Challenge Information:

Build a Movie Ticket Booking Calculator - Step 9

Welcome to the forum @ndindi06.t

Check where the print call goes.

You are not asked to assign a value to the discount variable.

Happy coding

alright let me get to it , thank you

I THINK I AM MISSING THE CONCEPT HERE

What do you think the concept is? Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code. Also, the more you say, the more we can help!

else:

    discount = 0

    print('User does not qualify for membership discount')



print('Discount:', discount)

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

This is pretty close. The instructions do not ask for discount = 0 to be in the else clause.

If you have a question about something, please ask it.

I’ve edited your post to improve the readability of the 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 (').