Unit 4 Task 5 - Solution

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

Solution - Task 5: Film length in minutes

← Back to task


One possible program:

def total_minutes(hours, minutes):
    return hours * 60 + minutes

print(total_minutes(2, 15))