♦ Logical Operators in Python
♣ Example4: Logical Operators in Python
Logical Operators in Python are used to evaluate conditional statements and produce Boolean output.Operator@Working |
---|
and@returns True if all variables/statements are True |
or@returns True if atleast one variables/statements are True |
not@returns the reverse of Boolean value |
Example
Input:
Output: