Where does the root come from inside the constructor of binary tree. I only know it is because of object parent class but how is it working and effective in the creation of tree
class BinaryTree(object):
def __init__(self, root):
self.root = Node(root)
Type your question above this line.
Course: https://www.educative.io/collection/10370001/5474278013140992
Lesson: https://www.educative.io/collection/page/10370001/5474278013140992/6495994092978176