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

Python Comparison Operators


Comparison operators are used to compare two values.

Types of Comparison Operators


Name Operator Example
Equal == a==b
Not Equal != a!=b
Greater Than > a>b
Less Than < a<b
Greater Than or Equal to >= a>=b
Less Than or Equal to <= a<=b