Created
March 31, 2016 11:33
-
-
Save Debanjan1234/f8f309f6300609fa449f33fb7ba16ffe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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