Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- year = datetime.datetime.today().year
- age = input("How old are you? ")
- name = input("What is your name? ")
- if age.isdigit()==True:
- print(f"{name}, you will 100 years old in the year " + str((int(year)-int(age))+100))
- else:
- print(f"{age.upper()} is not a number. ")
Add Comment
Please, Sign In to add comment