Created
November 2, 2016 21:32
-
-
Save joetechem/1dd86d8ec14bf6992984214c518142d0 to your computer and use it in GitHub Desktop.
You are a tree condition statements
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
# If and Elif Statements | |
print("You are a tree.") | |
print("Tree, what is your name?") | |
tree_name = input() | |
print(tree_name + ", how old are you?") | |
tree_age = float(input()) | |
if tree_age > 112: | |
print(tree_name + ", you are an old tree!") | |
elif tree_age < 112: | |
print(tree_name + ", do some more growing!") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment