tribalquest1

Untitled

Dec 26th, 2019
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import datetime
  2. year = datetime.datetime.today().year
  3.  
  4. age = input("How old are you? ")
  5. name = input("What is your name? ")
  6. if age.isdigit()==True:
  7. print(f"{name}, you will 100 years old in the year " + str((int(year)-int(age))+100))
  8. else:
  9. print(f"{age.upper()} is not a number. ")
Add Comment
Please, Sign In to add comment