Skip to content

Instantly share code, notes, and snippets.

@MuddyBootsCode
Created June 8, 2016 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MuddyBootsCode/a5e4aacae3337e6e7b4d750fc843955f to your computer and use it in GitHub Desktop.
Save MuddyBootsCode/a5e4aacae3337e6e7b4d750fc843955f to your computer and use it in GitHub Desktop.
userTime = int(input('Give me a number of seconds and I\'ll give you how much time that is back.\n'))
hour = int((userTime / 60) / 60)
minuet = int((userTime / 60) % 60)
sec = userTime - (((hour * 60) * 60) + (minuet * 60))
print(hour)
print(minuet)
print(sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment