Last active
June 9, 2018 20:50
-
-
Save iswarup/ac8d8767754cc099fd8c6a919cc882e3 to your computer and use it in GitHub Desktop.
datetime
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
name=input("Enter your name:") | |
age=int(input("Enter your age:")) | |
import datetime | |
now= datetime.datetime.now() | |
age100= now.year + (100-age) | |
print("Hello "+name+". "+"You will turn 100 in",age100,".") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment