Created
July 30, 2020 23:52
-
-
Save lenniecottrell/c89ee2bf035653749bd987a5eace1849 to your computer and use it in GitHub Desktop.
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
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