Tell us what’s happening:
What am I doing wrong here?
Remember to indent the body of the if statement and surround the message with single or double quotes inside the print() call.
12345678910
base_price = 15
age = 21
seat_type = ‘Gold’
show_time = ‘Evening’
age = 17
if age > 17:
print(‘User is eligible to book a ticket.’)
You should print User is eligible to book a ticket inside your 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'
# User Editable Region
age = 17
if age > 17:
print('User is eligiable to book a ticket.')
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36 OPR/126.0.0.0
Challenge Information:
Build a Movie Ticket Booking Calculator - Step 3