Created
January 20, 2019 22:24
-
-
Save djowinz/afe2aaf4050ce54778c3bb3a308aa860 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
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