Operators

Operators are special symbols and keywords that help perform an operation or computation on one or more values or variables.

The values or variables that the operator works on are called operands.

4. Logical Operators

Logical operators are used to combine multiple conditional statements or boolean expressions. They evaluate operands and return a boolean result (True or False), allowing your programs to make decisions based on more than one condition at a time.


Python has three core logical operators: and, or, and not.

Logical Operators Summary Table

Assuming x = 5 and y = 10: