Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- seconds = int(input())
- dd = int(0)
- hours = int(0)
- minutes = int(0)
- while seconds >= 86400:
- dd += 1
- seconds -= 86000
- while seconds >= 3600:
- hours += 1
- seconds -= 3600
- while seconds >= 60:
- minutes += 1
- seconds =- 60
- print(dd, hours, minutes, seconds)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement