Taking a coursera course and stuck and defining functions. I'm not really sure what I'm doing wrong.
Here is the question being posed:
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.
Here is my sample code:
def print_seconds(hours, minutes, seconds):
print("3600" + hours)
print ("60" + minutes)
print ("1" + seconds)
print_seconds(1,2,3)
These are what the current errors are:
Error on line 6:
print_seconds(1,2,3)
Error on line 2:
print("3600" + hours)
TypeError: must be str, not int