runtime
34 / 500
question 34 Conditional Logic · medium

Say how long it took

A video app stores how long someone watched in seconds. Show it the way people say it: with an hour or more, hours and minutes (1 h 2 min); under an hour but at least a minute, minutes and seconds (2 min 5 s); under a minute, just seconds (45 s).

First lineseconds = 3725. Check runs your program again with other durations
Prints1 h 2 min
Rulethe smaller unit is shown even when it is 0: 1 h 0 min, 1 min 0 s
Expected output1 line
  1. 11 h 2 min

Loading your progress…

Say how long it took — Python practice · Runtime