Skip to content

Instantly share code, notes, and snippets.

@lenniecottrell
Created July 30, 2020 23:52
Show Gist options
  • Save lenniecottrell/c89ee2bf035653749bd987a5eace1849 to your computer and use it in GitHub Desktop.
Save lenniecottrell/c89ee2bf035653749bd987a5eace1849 to your computer and use it in GitHub Desktop.
import datetime
thisYear = datetime.datetime.now()
print("This year is " + thisYear.strftime("%Y"))
fName = input("What is your first name?: ")
lName = input("What is your last name?: ")
age = input("What is your age?: ")
oneHundred = 100 - int(age)
result = int(oneHundred) + int(thisYear.strftime("%Y"))
print("Hello {} {}, you will turn 100 in the year ".format(fName,lName) + str(result))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment