I am learning python as a novice and I was asked to solve the total of seconds in the problem. I was given the format but it still seems that I can not get a hand of it. it keeps telling me that I didn't get the minute and seconds part
I tried this:
def get_seconds(hours, minutes, seconds):
return 3600*hours + 60*minutes + seconds
amount_a = get_seconds(3600*2 + 60*30 + 0*0)
amount_b = get_seconds(0 + 60*45 + 15)
result = amount_a + amount_b
print(result)
expecting to get it right as i think i imputed everything correctly but instead i was getting this:
Error on line 4:
amount_a = get_seconds(3600*2 + 60*30 + 0*0)
TypeError: get_seconds() missing 2 required positional arguments: 'minutes' and 'seconds'