Write the precedence of operators used in Python.
Answers
Answered by
5
Almost all the operators have left-to-right associativity. For example, multiplication and floor division have the same precedence. Hence, if both of them are present in an expression, left one is evaluates first. Exponent operator ** has right-to-left associativity in Python.
Similar questions