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
import datetime as dt | |
name=input('enter your name:') | |
date_entry = input('Enter a date in YYYY/MM/DD format:') | |
year, month, day = map(int, date_entry.split('/')) | |
year=year+100 | |
date1 = dt.date(year, month, day) | |
print('Hi',name,'you will become 100 year old at:',date1) | |