Table of Contents
show
Logical Operators are used to combine conditional statements
Example
a=5
b=10
print("a<5 and b <20", a<5 and b<20)
print("a<5 or b <20",a<5 or b<20)
print("not(a<5 and b<20)",not(a<5 and b<20))
Output
('a<5 and b <20', False)
('a<5 or b <20', True)
('not(a<5 and b<20)', True)
Views: 1