HOME C C++ PYTHON JAVA HTML CSS JAVASCRIPT BOOTSTRAP JQUERY REACT PHP SQL AJAX JSON DATA SCIENCE AI

Python Logical Operators


Logical operators are used to combine conditional statements.

Types of Logical Operators


Name Description Example
and Returns True if both statements are true a<5 and b<10
or Returns True if one of the statements is true a<10 or b<5
not Reverse the result, returns False if the result is true not(a<5 and b<10)