Advertisement
JolyJDIA

Untitled

Aug 9th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. secs = int(input())
  2. h = int(secs / 3600) % 24
  3. m = int(secs / 60 % 60)
  4. s = int(secs % 60)
  5.  
  6. print(
  7.     str("0" + str(h) if h < 9 else h) + ":" +
  8.     str("0" + str(m) if m < 9 else m) + ":" +
  9.     str("0" + str(s) if s < 9 else s)
  10. )
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement