Ticket Price in Python
Use a Python function with parameters and conditional returns to calculate the correct ticket price from age and membership status.
Python
Challenge overview
- Format
- Build a Function
- Category
- Python
- Difficulty
- Beginner
pythonfunctionsconditionalsreturn-values
Keep practicing
More coding challenges
JavaScript · Beginner
Tip Calculator
Build a JavaScript tip calculator function that accepts a bill total and percentage, returns the tip amount, and prints the calculated result.
View challengePython · Beginner
Tip Calculator in Python
Build a Python tip calculator function that accepts a bill total and percentage, returns the tip amount, and prints the calculated result.
View challengeJavaScript · Beginner
Toggle the Record Player
Complete a record player control that toggles playback, updates the button and status labels, and keeps the turntable animation in sync.
View challenge

