Skip to content

Instantly share code, notes, and snippets.

@vinnuvlsm
Created April 5, 2017 03:52
Show Gist options
  • Save vinnuvlsm/9f350bb1695b9b33c5085decda92d841 to your computer and use it in GitHub Desktop.
Save vinnuvlsm/9f350bb1695b9b33c5085decda92d841 to your computer and use it in GitHub Desktop.
import datetime
name = str(input("Please Enter your Name:"))
age = int(input("Please Enter your Age:"))
numTimes = int(input("Number of times you want this message to be printed?"))
print(name.isalpha())
currentYear = datetime.date.today().year
remainderAgefor100 = 100-age
futureYear = currentYear + remainderAgefor100
if name.isalpha():
print(numTimes*"In the year {}, {} will be 100 years\n".format(futureYear,name))
else:
print("Please Enter proper Age or name")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment