[Solved] Creating an expression tree for prefix expression


You are passing prefix_exp_str[1:] to both the recursive calls. Instead, the second recursive call needs to receive whatever is left of the input string after the first recursive call is finished.

solved Creating an expression tree for prefix expression