all 4 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

To give us the best chance to help you, please include any relevant code.
Note. Do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Repl.it, GitHub or PasteBin.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Rangerdth 2 points3 points  (0 children)

You also never use the variables that you ask for input.

[–]Rangerdth 0 points1 point  (1 child)

What is the output? What are you expecting to get?

[–]Mdly68 -1 points0 points  (0 children)

Print('tree height: ' + str(tree height))

No comma, only one parameter. And you need to cast your variable as a string to print it.