Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- secs = int(input())
- h = int(secs / 3600) % 24
- m = int(secs / 60 % 60)
- s = int(secs % 60)
- print(
- str("0" + str(h) if h < 9 else h) + ":" +
- str("0" + str(m) if m < 9 else m) + ":" +
- str("0" + str(s) if s < 9 else s)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement