Skip to content

Instantly share code, notes, and snippets.

@Wingless-Archangel
Created November 5, 2016 02:52
Show Gist options
  • Save Wingless-Archangel/d5cd908aaab29f24119ca55d58023856 to your computer and use it in GitHub Desktop.
Save Wingless-Archangel/d5cd908aaab29f24119ca55d58023856 to your computer and use it in GitHub Desktop.
return year when you are 100
#!/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