Exerpad
Exercise 7 · Chapter: ConditionsRequired+50 XP

Ticket Price

Read an age and print the ticket price:

  • Under 5: Free
  • 5 to 12: $5
  • 13 and over: $10

Example: Input 8 → Output $5

Need a hint?
3 available · costs 5 XP each
python

Output
Run your code to see the output here.