Skip to content

Instantly share code, notes, and snippets.

@Deep18-03
Created March 29, 2020 15:50
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 Deep18-03/40e2b857c5202383b27716bfd50be4bf to your computer and use it in GitHub Desktop.
Save Deep18-03/40e2b857c5202383b27716bfd50be4bf to your computer and use it in GitHub Desktop.
import datetime
name=input("Enter your name")
age=int(input('enter yout age'))
now=datetime.datetime.now()
current_year=now.year
year=(current_year-age)+100
print( name +' you will be at 100 in '+str(year)+' years' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment