Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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('/'))
date1 =, month, day)
print('Hi',name,'you will become 100 year old at:',date1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment