Unit 4 Task 5: Film length in minutes

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

Unit 4 Task 5 - Film length in minutes

← Unit 4 tasks · Solution


Write total_minutes(hours, minutes) that returns a single integer: the total number of minutes (e.g. 2 hours and 15 minutes → 135).

Skills: return, combining hours and minutes.