Skip to content

Instantly share code, notes, and snippets.

@djowinz
Created January 20, 2019 22:24
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 djowinz/afe2aaf4050ce54778c3bb3a308aa860 to your computer and use it in GitHub Desktop.
Save djowinz/afe2aaf4050ce54778c3bb3a308aa860 to your computer and use it in GitHub Desktop.
from datetime import datetime
currentYear = datetime.now().year
userName = str(input("Enter your name: "))
userAge = int(input("Enter your age: "))
print("It is currently the year " + str(currentYear))
print("Your name is " + userName)
print("and you are " + str(userAge) + "years old.")
yearone = currentYear + (100 - int(userAge))
print ("You will be 100 years on in " + str(yearone))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment