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

A Program of Using Logical Operators in Python

Further Reading

Python Practice Exercise

Examples of OpenCV Library in Python

Examples of Tuples in Python

Python List Practice Exercise

A Brief Introduction of Pandas Library in Python

A Brief Tutorial on NumPy in Python

programmingempire

princites.com

IITM Software Development Cell