Build a Movie Ticket Booking Calculator - Step 3

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

Welcome to the forum @amtopouzian21

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!

Please check the console.

Happy coding