Skip to content

Instantly share code, notes, and snippets.

@MrThiago
Created December 26, 2020 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrThiago/5e418b479be11be7031e9912b4291935 to your computer and use it in GitHub Desktop.
Save MrThiago/5e418b479be11be7031e9912b4291935 to your computer and use it in GitHub Desktop.
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