Unit 4 Task 4: Zoo ticket total

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Unit 4 Task 4 - Zoo ticket total

← Unit 4 tasks · Solution


Write ticket_total(adults, children) that returns the total cost in pounds:

Test by printing ticket_total(2, 3) or similar.

Skills: return, two parameters, integer arithmetic.