Question: pls answer this in python and post the screenshot of the code with proper indentation. Create and submit your own class BinaryTree that implements the

pls answer this in python and post the screenshot of the code with proper indentation.
pls answer this in python and post the screenshot of the code
with proper indentation. Create and submit your own class BinaryTree that implements

Create and submit your own class BinaryTree that implements the Binary Tree ADT: 1. A constructor BinaryIree(rootObi) 2. insertleftinewNodeval) 3. insertRightinewNodevon 4. getRiightChild0 5. getieftchild0 6. getriootValu: 7. setRootval(obj] 8. str a should return a string in the following format root lleftlilill rightinilll where root, left, right are values of the root, its left child, and its right child respectively. If the children are missing, then they are represented as Il, so if the root does not have children, then it should be shown as rootili. You can use the code below to start on your implementation: clwisinginire: Your class thoud work with the following driver code class sinary tree: Your class should work with the following driver code: The driver code should produce the following output otil atbtifi]tcisis. b[d][]\}te[t] citifilis) Please name your file tree.py and upload it here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!