Movie-ticket-booking-calculator/step-9

movie-ticket-booking-calculator/step-9

base_price = 15

age = 21

seat_type = ‘Gold’

show_time = ‘Evening’

is_member = True

is_weekend = False

discount = 0

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')

if not is_member:

discount = 3

print('User qualifies for membership discount')

if age <= 15:

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

else :

discount += 3

print ('Discount:' ,discount)

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

if i try this every time need for else clause

where is the problem in that ?

1 Like

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

@eluose007 I hope u good. were you able to get past step 9, see I am also experiencing similar challenges. although the code is accurate, I still get stuck. if you have , pls do help out. thank you.

Please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.