Introducing Python © Chirag Wazir 2002 Prev   Index   Next

Operators

Operators Description
+, -, *, /, **, %, // addition, subtraction, multiplication, division, exponentiation, remainder, integer division
or, and, not Boolean OR, AND, NOT
|, ^, &, ~, <<, >> Bitwise OR, XOR, AND, NOT, Left Shift, Right Shift
<, <=, >, >=, <>, !=, == Comparisons
in, not in Membership tests
is, is not Identity tests