It allows one or more conditions and display the
result either true or false.
| Operators | Description | 
| And | Logical AND(When both conditions
  are true output will be true) | 
| Or | Logical OR (If any one condition
  is true output will be true) | 
| Not | Logical NOT(Compliment the
  condition i.e., reverse) | 
Example Program
a=5>4 and 3>2  
print(a)  
b=5>4 or 3<2  
print(b)  
c=not(5>4)  
print(c)  
Output
True  
True  
False
Comments
Post a Comment