Last active
August 29, 2015 14:02
-
-
Save eidolonrage/9e005c5efdf2a98eb2eb to your computer and use it in GitHub Desktop.
This here is a file.
This file contains hidden or 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
time = None | |
while not time: | |
try: | |
time = int(raw_input('Time in seconds: ')) | |
except ValueError: | |
print 'Invalid Number' | |
hundredths = float (time)/60 | |
minutes = time/60 | |
while hundredths > 1: | |
hundredths -= 1 | |
hundredths *= 60 | |
print str(minutes) + ':' + str(hundredths) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice work! First things first: Rename the file from "SecondsConverter" to "seconds_converter.py". This will trigger python syntax highlighting.