The result of a comparison is always a bool.
If the comparison is correct, the value of the bool will be True. Otherwise, its value will be False.
The == and != operators compare the values of both operands. However, the identity operators, is and is not, check whether the two operands are the exact same object.
Let’s look at a few examples: