Boolean Expressions A boolean expression is an expression that is either true or false. The following examples use the operator ==, which compares two operands and produces True if they are equal and False otherwise. >>> 5 == 5 True >>> 5 == 6 False True and False are special values that belong to the type bool;