Created
December 26, 2020 15:35
-
-
Save MrThiago/5e418b479be11be7031e9912b4291935 to your computer and use it in GitHub Desktop.
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
print("I will tell you how days, weeks and months you have left, if you were to live until 90 years old.\n") | |
age = int(input("How old are you? \n")) | |
years_left = 90 - age | |
days_left = years_left * 365 | |
weeks_left = years_left * 52 | |
months_left = years_left * 12 | |
print(f"You have {days_left} days, {weeks_left} weeks and {months_left} months left.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment