Created
November 5, 2016 02:52
-
-
Save Wingless-Archangel/d5cd908aaab29f24119ca55d58023856 to your computer and use it in GitHub Desktop.
return year when you are 100
This file contains 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
#!/usr/bin/python3 | |
import datetime | |
def main(): | |
age = input("Please enter your age : ") | |
print("You will be 100 years in %d" % (datetime.datetime.now().year+(100-age))) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment