Created
July 12, 2016 00:52
-
-
Save lucaslra/218be60ad5f6af60076762e21d8ee6d5 to your computer and use it in GitHub Desktop.
Practice Python - Character Input
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
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