# Operators In Python: Logical Operators

**Python Logical Operators**

Logical operators are the **and**, **or**, **not **operators.

Now we will see different Logical Operators and how to implement Logical operations in python.

Symbol | Operator Name | Description |

and | Logical AND | If both the operands are true, then the condition is true. |

or | Logical OR | If any of the two operands is true or non-zero, then the condition is true. |

not | Logical NOT | It is used to reverse the logical state of the operand (true if an operand is false). |

Now we will see Truth Table of logical operations and, or, not so we can easily understand the working of logical operators.

Only if both the operands are True then and will result in True.

#### The Truth table for and

A | B | A and B |

True | True | True |

True | False | False |

False | True | False |

False | False | False |

If any of the operands is True, then or will result in True.

**The Truth table for or **

A | B | A or B |

True | True | True |

True | False | True |

False | True | True |

False | False | False |

The not operator inverts the truth value.

**The Truth table for not**

A | not A |

True | False |

False | True |

**Example**

Now we will see the implementation of Logical Operators by the following example.