Guest User

Untitled

a guest
Jul 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. # Read From Seconds
  2. def readSeconds(s):
  3. """ This function takes a a number of seconds, s, and returns a string that expresses that span
  4. of time in terms of days, hours, minutes and seconds.
  5. """
  6.  
  7. # Figure out the number of days
  8. day_string = <various black magic>
  9.  
  10. # Figure out number of hours
  11. hour_string = <...>
  12.  
  13. <...>
  14.  
  15. return day_string + " " + hour_string + " " + minute_string + " " + second_string
Add Comment
Please, Sign In to add comment