Created
April 5, 2017 03:52
-
-
Save vinnuvlsm/9f350bb1695b9b33c5085decda92d841 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 | |
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