Code To Convert Infix to Postfix using List in Python | Pritesh D. Patel | [in Hindi]

preview_player
Показать описание
This Video Contains
Python Code to convert Infix expression to Postfix expression using Stack.
Рекомендации по теме
Комментарии
Автор

Sir, I want to thank you for this video that you uploaded. I was able to finish my task regarding INFIX to POSTFIX conversion by following your video. You literally MADE IT EASY.

Hoping you would upload more of your knowledge.

CAT-xwlj
Автор

Sir I thank you and Appreciate on how you explained and simplified the code and I easily understand the code. I was able to finish my task on my school about INFIX to POSTFIX. I Very Much Thank you sir and I hope to learn from you on your next videos.

iceblade
Автор

You're gonna legend soon ❣ thanku so much for the video . Keep uploading 🙏🙏🙏

ajitajit
Автор

it would have been nice if u gave the source code too in the comments or description

piyapiyagill
Автор

If two the input and top of the stack is same then

MathsandCoding
Автор

Hi Sir, I tried for few expressions and it's working fine.Thanks!!. But for expression like infix-> (A* (B + D)/E) - F * (G + H / K)), i am getting the output postfix-> A B D+*E/ F G H K/+*- instead of ABD+E/*FGHK/+*-
And tried with another case like, infix-> ((A + B) – C * (D / E)) + F, getting postfix as -> A B+ – C D E/* F+ instead of AB+CDE/*-F+
Can you please clarify on that please?

JAGAPUTHRANS
Автор

is there a way you can do it without a break statement ?

beebloop
Автор

Anyone know why the line
while(operator[-1] != "("):

gives me IndexError: list index out of range

XMehrooz
Автор

For some reason, when I implement your code in python on VS, I have a weird output. If I input 2+2, i get 22% back. This occurs with any values I try, like 1+2+3*4-1 for example. That will just return 12341%. It seems like % is replacing all my operators. Any clue as to why?

nicholasletarte
Автор

Sir how if infix to postfix but digits? I tried this code and if I input a two digit number say "10", the program converts it to ["1", "0"]

gxdx