Question: Write a program that asks the user to enter a number of seconds, and works as follows:
There are 60 seconds in a minute. If the number of seconds
def convertSeconds(seconds): h = seconds//(60*60) m = (seconds-h*60*60)//60 s = seconds-(h*60*60)-(m*60) return [h, m, s]
The function input is a number of seconds, and the return is a list of hours, minutes and seconds which that amount of seconds represent.