Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. sec = int(input())
  2. hours = str(sec // 3600)
  3. sec %= 3600
  4. minutes = str(sec // 60)
  5. sec %= 60
  6. sec = str(sec)
  7. minutes += '0' * (2 - len(minutes))
  8. sec += '0' * (2 - len(sec))
  9. print(hours + ':' + minutes + ':' + sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement