Q:

Why 1/2*2 is 1 and not 0.25 in Python since python follows PEDMAS?

I know BODMAS and recently I have started with Python which follows PEDMAS.
So, really trivial question - why 1/2* 2 is 1 and not 0.25?

A:

Multiplication and division have the same priority and are executed from left to right. For example, I punched "PEDMAS" into my favorite search engine and my first hit said:

Even though M for multiplication in PEMDAS comes before D for division, these two operations actually have the same priority. Complete only those two operations in the order they occur from left to right.

