Tell us what’s happening:
Create an if statement to check if age is greater than 17. Inside the body of the if statement, print User is eligible to book a ticket. This will print the message only when the user’s age is greater than 17.
Remember to indent the body of the if statement and surround the message with single or double quotes inside the print() call.
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 eligible to book a ticket.')
#pass (17)
# User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Challenge Information:
Build a Movie Ticket Booking Calculator - Step 3
