When eval an equation does it follow the PEMDAS rules?

For example: 2.0-1.0-3.0*6.0+5.0*4.0 when evaluated equals 3.0 when evaluated by python. To me that doesn't seem correct, I get a much larger number than 3.0

When I evaluate in python eval("6/2*3") it should equal 1 but in python it equals 9.

So anyone give me an idea on how to get eval to follow the PEMDAS rules?

When eval an equation does it follow the PEMDAS rules?

For example: 2.0-1.0-3.0*6.0+5.0*4.0 when evaluated equals 3.0 when evaluated by python. To me that doesn't seem correct, I get a much larger number than 3.0

When I evaluate in python eval("6/2*3") it should equal 1 but in python it equals 9.

So anyone give me an idea on how to get eval to follow the PEMDAS rules?

It does follow PEMDAS rules.
Never doubt Python's adherence to math rules. 6/2*3 equals 9 on:

Python (Any Version)

My TI-89 Graphing Calculator

My Mental Math

:D
that is because PEMDAS works like this: P, E, M and D, A and S So according to PEMDAS: 6/2*3

is(6/2)*3

That's because multiplication and division are the same rank.