Write a function. Test real cases. Improve your solution.
Turn a nonnegative whole number of seconds into a string in H:MM:SS format. Hours have no leading zero and may exceed 23. Minutes and seconds must each use two digits. For example, 61 becomes "0:01:01". The argument is always an integer, not a boolean.
[0]
"0:00:00"
[59]
"0:00:59"
[60]
"0:01:00"
[3601]
"1:00:01"
[90061]
"25:01:01"
[7325]
"2:02:05"
Python 3.14 runs in your browser. The first run downloads about 13 MB; your browser can cache it for later visits. Each run starts fresh. Use synchronous functions and core standard-library modules. Network requests, package installs, and interactive input() are unavailable. Return lists, string-key dictionaries, strings, finite numbers, bools, or None. Student code stops after about four seconds, after Python loads. Python engine credits. Test results support self-study and don’t certify proficiency.