I have made my own customized Python package. This tree package contains 54 unique binary tree operations that you can use just by making a function call.
Google Colab
In Google Colab, simply use the following command in a code cell to install the package:
!pip install binaryTREE-operations
pip install binaryTREE-operations
Jupyter Notebook
To install the package in Jupyter Notebook, run the following command in a code cell:
!pip install binaryTREE-operations
from binaryTREE import BinaryTree
Binarytree = BinaryTree()
YOU CAN ALSO VISIT: https://pypi.org/project/binaryTREE-operations/