Skip to content

Instantly share code, notes, and snippets.

@Debanjan1234
Created March 31, 2016 11:33
Show Gist options
  • Save Debanjan1234/f8f309f6300609fa449f33fb7ba16ffe to your computer and use it in GitHub Desktop.
Save Debanjan1234/f8f309f6300609fa449f33fb7ba16ffe to your computer and use it in GitHub Desktop.
#python code for second to m,h conversion
seconds = input ('Enter Seconds: ')
m, s = divmod(seconds, 60)
h, m = divmod(m, 60)
print "%d:%02d:%02d" % (h, m, s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment