> i also replaced the infixtopostfix to the problem:
>
> ("5 * 3 ^ (4 - 2)”))
>
> here is the error I am getting :
>
> Traceback (most recent call last):
> File "/Users/stephaniequiles/Downloads/Listings/listing_3_7.py", line 53,
> in
> print(infixToPostfix("5 * 3 ^ (4 - 2)"))
> File "/Us
My assignment calls for the program to be edited to handle the “^” symbol. the
hint is that it should be done with just one line of code. Here is the
assignment:
Modify the infix-to-postfix algorithm to handle exponentiation. Use the ^
symbol as the input token for testing.
Q-14: Modify the inf