Skip to content

Instantly share code, notes, and snippets.

@bmarkons
Created November 21, 2014 18:28
Show Gist options
  • Save bmarkons/d73fb5da3f9f83f49b8e to your computer and use it in GitHub Desktop.
Save bmarkons/d73fb5da3f9f83f49b8e to your computer and use it in GitHub Desktop.
def timeleft(age):
return 2014+(100-int(age))
name=input("Tell me your name: ")
age=input("And age: ")
print(timeleft(age))
if int(age)<31:
print("Well, hello " + name + "\nYou are still pretty young. You will turn 100 years old in ",timeleft(age)," years. Enjoy your life. :) ")
elif int(age)>=100:
print("You are about to die soon. Get dressed well for funneral. ;)")
else:
print("We don't wanna lie to you but ur fuckin' old. You will turn 100 years old in ",timeleft(age),". just kidin")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment