Skip to content

Instantly share code, notes, and snippets.

@lucaslra
Created July 12, 2016 00:52
Show Gist options
  • Save lucaslra/218be60ad5f6af60076762e21d8ee6d5 to your computer and use it in GitHub Desktop.
Save lucaslra/218be60ad5f6af60076762e21d8ee6d5 to your computer and use it in GitHub Desktop.
Practice Python - Character Input
from datetime import date
name = input("What's your name?")
age = input("How old are you?")
years = date.today().year + 100 - int(age)
print("Well " + name +
", it seems like you are going to have 100 years by the year " + str(years))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment