← Back to challenges

Convert Hours and Minutes into Seconds

PythonMediumlanguage_fundamentalsmath

Instructions

Write a function that takes two integers (hours, minutes), converts them to seconds, and adds them.

Examples

convert(1, 3) ➞ 3780

convert(2, 0) ➞ 7200

convert(0, 0) ➞ 0
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.