Skip to content

Instantly share code, notes, and snippets.

@eidolonrage
Last active August 29, 2015 14:02
Show Gist options
  • Save eidolonrage/9e005c5efdf2a98eb2eb to your computer and use it in GitHub Desktop.
Save eidolonrage/9e005c5efdf2a98eb2eb to your computer and use it in GitHub Desktop.
This here is a file.
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)
@sunetos
Copy link

sunetos commented Jun 13, 2014

Nice work! First things first: Rename the file from "SecondsConverter" to "seconds_converter.py". This will trigger python syntax highlighting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment