Created
November 21, 2014 18:28
-
-
Save bmarkons/d73fb5da3f9f83f49b8e 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
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