Exceptional Python
To return a value from deep down... raise it :-)\n\n    def kthSmallest(self, root, k):\n        def inorder(root, k):\n            if root:\n                k 
To return a value from deep down... raise it :-)\n\n    def kthSmallest(self, root, k):\n        def inorder(root, k):\n            if root:\n                k = inorder(root.left, k)\n                if k == 1:\n                    raise Exception(root.val)\n                k = inorder(root.right, k-1)\n            return k\n        try:\n            inorder(root, k)\n        except Exception as e:\n            return e.message
['Python']