runtime
40 / 500
question 40 Conditional Logic · hard

Three bugs in the ticket desk

A cinema charges children under 12 6, people 65 and over 7, and everyone else 11. Students pay 2 less, whatever their ticket. The desk types the age and then yes or no for student. The program gives a 30-year-old non-student a student price, never sells a senior ticket, and has one more boundary bug. Fix all three.

Typed lines30, then no. Check also types other customers
PrintsAge? Student? Price: 11
Expected output1 line · typed 30, then no
  1. 1Age? Student? Price: 11

Loading your progress…

Three bugs in the ticket desk — Python practice · Runtime