Operators

Logical operators are used for conditional expressions.
Similar to C, the numeric value 0 is equivalent to the logical value 'False', and non-0 is equivalent to 'True'.

or Logical or
and Logical and
not Logical negation
< <= > >= == != Numeric or string comparison
in String or list membership
>>> 1 in [3,2,1] and 7 > 5
True