The following code example demonstrates an example of Using Logical Operators in Python.
# programmingempire.com
a = 567
b = 932
c ="Joe"
print(a and True and a)
print(a or True or False)
print(b or False or False)
print(c or True or False)
print(b and False and False)
print(a and b and c)
print(not a)
print(a or b or c)
Output
Further Reading
Examples of OpenCV Library in Python
A Brief Introduction of Pandas Library in Python