Seconds to Time

Complete to_time(total_seconds) so it converts a number of seconds into hours, minutes and remaining seconds using integer division (//) and modulus (%) - not floating-point division - then prints the result as H:MM:SS.

main.py
Loading editor…

Console

Run your code to see output here.