logical operator of python

Logical operators are the andornot operators.

Operator Meaning Example
and True if both the operands are true x and y
or True if either of the operands is true

x or y

not True if operand is false (complements the operand)
Posted on by