Created
April 17, 2021 18:46
-
-
Save FaltoGH/98509a18206537ee404050a6f79313bc to your computer and use it in GitHub Desktop.
Second to Minute:Second!
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
def stms(s): | |
minute = s//60 | |
second = s%60 | |
minute, second = int(minute), int(second) | |
return f'{minute}:{second:02}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment