Beginner
Seconds into hours, minutes, seconds
total_seconds is 3725. Fill in the variables hours, minutes and seconds so that they describe the same time (there are 3600 seconds in an hour and 60 in a minute).
The last line prints them as a clock, 1:02:05: minutes and seconds are padded with a zero to two digits. Keep that line as it is, and replace the three 0 values with your calculation.
What Check tests
hoursis 1minutesis 2secondsis 5- The three parts add back up to
total_seconds - The answer is calculated, not typed
- The program prints
1:02:05
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
main.py
Sign in to run your code.
Output
Press Run to see what your program prints.