Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
You are a tree condition statements
# 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
You can’t perform that action at this time.