SHARE
TWEET

Untitled

a guest Feb 27th, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. seconds = int(input())
  2. dd = int(0)
  3. hours = int(0)
  4. minutes = int(0)
  5. while seconds >= 86400:
  6.     dd += 1
  7.     seconds -= 86000
  8. while seconds >= 3600:
  9.     hours += 1
  10.     seconds -= 3600
  11. while seconds >= 60:
  12.     minutes += 1
  13.     seconds =- 60
  14. print(dd, hours, minutes, seconds)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top