5 The power operator ** binds less tightly than an arithmetic or bitwise unary operator on its right, that is, 2**-1 is 0.5 . 6 The % operator is also used for string formatting; the same precedence applies. Chapter 6. Expressions 82 Operator Description (expressions...) , [expressions...] , {key: value...} , {expressions...} Binding or parenthesized expression, list display, dictionary display, set display x[index] , x[index:index] , x(arguments...) , x.attribute Subscription, slicing, call, attribute reference await x Await expression ** Exponentiation 5 +x ,$_{-x}$ ,$_{~x}$ Positive, negative, bitwise NOT * ,$_{@}$ ,$_{/}$ ,$_{//}$ ,$_{%}$ Multiplication, matrix multiplication, division, floor division, remainder 6 + ,$_{-}$ Addition and subtraction << ,$_{>>}$ Shifts & Bitwise AND ^ Bitwise XOR | Bitwise OR in , not in , is , is not , < , <= , > , >= , != , == Comparisons, including membership tests and identity tests not x Boolean NOT and Boolean AND or Boolean OR if –$_{else}$ Conditional expression lambda Lambda expression := Assignment expression The Python Language Reference, Release 3.9.5