Glossary of Terms

Comparison Operators in Python

Keyword Definition
!= Used to check if two values are not equal.
< Used to check if the left operand is less than the right operand.
<= Used to check if the left operand is less than or equal to the right operand.
== Used to check if two values are equal.
> Used to check if the left operand is greater than the right operand.
>= The '>=' Used to check if the left operand is greater than or equal to the right operand.
Comparison Operators Used to compare values and return a boolean result.
In Used to check if a value exists in a sequence.
Is Used to check if two variables refer to the same object in memory.
Not In Used to check if a value does not exist in a sequence.