def print_seconds(hours, minutes, seconds): 

Fixed:

Do you think you can flesh out your own function? I think you can! Let’s give it a go.

Flesh out the body of the print_seconds function so that it prints the total amount of seconds given the hours, minutes, and seconds function parameters. Remember that there are 3600 seconds in an hour and 60 seconds in a minute.

def print_seconds(hours, minutes, seconds):    

print(3600*hours+60*minutes+seconds)
print_seconds(1,2,3)

Here is your output:
3723

Scroll to Top