Skip to content

Instantly share code, notes, and snippets.

@vishalvikash93
Created December 30, 2018 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vishalvikash93/2e787d7fcb3bb79f9ed612e138e825d1 to your computer and use it in GitHub Desktop.
Save vishalvikash93/2e787d7fcb3bb79f9ed612e138e825d1 to your computer and use it in GitHub Desktop.
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment