♦ Logical Operators in Python
♣ Example4: Logical Operators in Python
Logical Operators in Python are used to evaluate conditional statements and produce Boolean output.[email protected] |
---|
[email protected] True if all variables/statements are True |
[email protected] True if atleast one variables/statements are True |
[email protected] the reverse of Boolean value |
Example
Input:
Output: