Infix to postfix

Here is my python code for convert infix to postfix: CodeChef: Practical coding for everyone

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