Last active
August 16, 2016 07:12
-
-
Save piotrgredowski/6d1661153ff71874c878a3f73ad75dbe to your computer and use it in GitHub Desktop.
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
# 1: Character Input | |
from datetime import datetime | |
name=input("What's your name?\n") | |
age=int(input("How old are you?\n")) | |
if age / 100 == 0: | |
cur_year = datetime.now().year | |
est_year = cur_year - age + 100 | |
print (name + ", you'll have an age of 100 years in " + str(est_year) + ".") | |
else: | |
print (name + ", you are already above 100! I wish you 100 more!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment