id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

getHoursMinutesSeconds


Write a getHoursMinutesSeconds() function that has a totalSeconds parameter. The argument for this parameter will be the number of seconds to be translated into a list with the number of hours, minutes, and seconds.


getHoursMinutesSeconds(30) → [0, 0, 30]
getHoursMinutesSeconds(60) → [0, 1, 0]
getHoursMinutesSeconds(90) → [0, 1, 30]

...Save, Compile, Run (ctrl-enter)

def getHoursMinutesSeconds(totalSeconds):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 201 Post-solution available

Copyright Nick Parlante 2017 - privacy