Last active
August 29, 2015 14:13
-
-
Save cwake/0ce89f7a1a36bc9412e8 to your computer and use it in GitHub Desktop.
Chloe's Time Conversion Program
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
# Chloe's time conversion. Converts seconds to minutes and hours | |
print("Chloe's time conversion program: converts seconds into minutes and hours.") | |
seconds = int(input("Enter any number of seconds to convert to both minutes and hours: ")) | |
minutes = seconds / 60 #60 seconds in a minute | |
hours = minutes / 60 # 60 minutes in a hour | |
print(str(seconds) + ' seconds is ' + str(minutes) + 'minutes.') # prints minutes conversion | |
print(str(seconds) + ' seconds is ' + str(hours) + 'hours.') # prints hours |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment