Comparison operators, also called relational operators, compare two values and evaluate down to a single boolean value .
: Comparison Operators
Operator | Meaning |
---|---|
== |
Equal to |
!= |
Not equal to |
< |
Less than |
> |
Greater than |
<= |
Less than or equal to |
>= |
Greater than or equal to |
These evaluate to True or False depending on the values you give them.