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 |