Build a Movie Ticket Booking Calculator - Step 8

Tell us what’s happening:

I have done everything it told me to do but every time I click Check Your Code it still brings up You should print “User qualifies for membership discount” inside your new if statement. Remember to surround the message with single or double quotes.

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: discount = 3 
print('User qualifies 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/150.0.0.0 Safari/537.36 Edg/150.0.0.0

Challenge Information:

Build a Movie Ticket Booking Calculator - Step 8

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

Welcome to the forum @Balmyplains,

Please compare your if statement to those you wrote previously. Is your indentation correct?

Happy coding

Your print() is not inside the if block. Add proper indentation:

removed by moderator

Python checks spaces before the line, so make sure print() is aligned with discount.

Hi @cartergray22,

It is great that you solved the challenge but, in the future, instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you.