Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Python Tutorials: Logical Operators In Python

Logical operators are used to connect more relational operations to form a complex expression called logical expression. A value obtained by evaluating a logical expression is always logical, i.e. either True or False.

Table of Contents

and

True and Expression1 and Expression2 = Expression2
False and Expression1 and Expression2 = False

or

True or Expression1 or Expression2 = True
False or Expression1 or Expression2 = Expression1

not

Rajesh Kumar
Follow me