Printing binary tree after initialising gives None value
Printing binary tree after initialising gives None value Question: I have a simple binary tree. I have intialized it using TreeNode class, but while printing out the values from the tree, it gives me None value as well. How to mitigate this? The code snippet is as follows: class TreeNode: def __init__(self, root=None, left = …