Learn Python in 7 Days
上QQ阅读APP看书,第一时间看更新

Operator precedence

Operators with the highest precedence are placed on the top:

Operators that have the same precedence are evaluated from left to right, except for comparisons and exponentiation. Comparisons can be chained arbitrarily.