equal to>greater than or equal toand greater than these operators compare object valuesthat isthe objects that the object references used in the comparison refer to here are few examples typed into python shella = false true ba (truetruefalsefalseeverything is as we would expect with integers similarlystrings appear to compare properly tooa "many pathsb "many pathsa is false = true although and are different objects (have different identities)they have the same valuesso they compare equal be awarethoughthat because python uses unicode for representing stringscomparing strings that contain non-ascii characters can be lot subtler and more complicated than it might at first appear--we will fully discuss this issue in in some casescomparing the identity of two strings or numbers--for exampleusing is --will return trueeven if each has been assigned separately as we did here this is because some implementations of python will reuse the same object (since the value is the same and is immutablefor the sake of efficiency the moral of this is to use =and !when comparing valuesand to use is and is not only when comparing with none or when we really do want to see if two object referencesrather than their valuesare the same one particularly nice feature of python' comparison operators is that they can be chained for examplea < < true this is nicer way of testing that given data item is in range than having to do two separate comparisons joined by logical andas most other languages require it also has the additional virtue of evaluating the data item only once (since it appears once only in the expression)something that could make comparing strings