Challenge 004
Write a function that takes two integers (hours
, minutes
), converts them to seconds, and adds them.
Examples
remainder(1, 3) ➞ 1
remainder(3, 4) ➞ 3
remainder(5, 5) ➞ 0
remainder(7, 2) ➞ 1
Solution
def convert(hours, minutes):
return hours * 3600 + minutes * 60