Binary Tree Traversal Using Python