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
# Coding folder | |
mkdir ~/dev | |
# vim | |
sudo apt-get install vim | |
# git | |
sudo apt-get install git |
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: |
NewerOlder