Driver code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT root = Node ( 1 ) NEW_LINE root . left = Node ( 2 ) NEW_LINE root . right = Node ( 3 ) NEW_LINE root . right . left = Node ( 4 ) NEW_LINE root . right . right = Node ( 5 ) NEW_LINE print ( " Level ▁ order ▁ traversal ▁ of ▁ given ▁ tree " ) NEW_LINE printLevelOrder ( root ) NEW_LINE root = flipBinaryTree ( root ) NEW_LINE print ( " Level order traversal of the flipped " ▁ " tree " ) NEW_LINE printLevelOrder ( root ) NEW_LINE DEDENT