Master Python

Length of a video

Length of a video

A video player knows how long each clip is in seconds, which is not how anybody reads a length. Under every thumbnail it wants a short label instead, of the form 3 min 25 s.

Write clockLabel, which takes a number of seconds and returns that label.

Worked example

Input:  seconds = 205
Output: "3 min 25 s"

205 seconds is 3 whole minutes with 25 seconds left over.
205 // 60  is 3,  the whole minutes.
205 % 60   is 25, the remainder.

Constraints

  • seconds is between 0 and 100000.
  • The label is the whole minutes, a space, min, a space, the leftover seconds, a space, s. Exactly that, with single spaces and nothing on the end.
  • Do not pad with zeros. Sixty seconds is 1 min 0 s, not 1 min 00 s.
  • Do not stop counting at sixty minutes. An hour is 60 min 0 s.
Code

Run your code to see how it does on the examples. Submit also runs the hidden cases.