When more than one operator appears in an expression, the order of evaluation depends on the rules of precedence. Python follows PEDMAS rule.
P Parentheses, then E Exponents, then MD Multiplication and division, left to right, then AS Addition and subtraction, left to right
Order of operations execution in Python Examples:
Continue reading Order of operations execution in Python