Skip to content

Instantly share code, notes, and snippets.

@piotrgredowski
Last active August 16, 2016 07:12
Show Gist options
  • Save piotrgredowski/6d1661153ff71874c878a3f73ad75dbe to your computer and use it in GitHub Desktop.
Save piotrgredowski/6d1661153ff71874c878a3f73ad75dbe to your computer and use it in GitHub Desktop.
# 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