Infix to postfix

Here is my python code for convert infix to postfix: Solution: 40655675 | CodeChef

don’t know where am i getting wrong…???