Let 's construct the tree show in the above figure
root = Node ( 1 ) NEW_LINE root . left = Node ( 2 ) NEW_LINE root . right = Node ( 2 ) NEW_LINE root . left . left = Node ( 3 ) NEW_LINE root . left . right = Node ( 4 ) NEW_LINE root . right . left = Node ( 4 ) NEW_LINE root . right . right = Node ( 3 ) NEW_LINE print " Symmetric " if isSymmetric ( root ) == True else " Not ▁ symmetric " NEW_LINE