Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sec = int(input())
- hours = str(sec // 3600)
- sec %= 3600
- minutes = str(sec // 60)
- sec %= 60
- sec = str(sec)
- minutes += '0' * (2 - len(minutes))
- sec += '0' * (2 - len(sec))
- print(hours + ':' + minutes + ':' + sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement