one lexicographical ordering for strings uses the unicode code point number to order individual characters some examples of comparisons between sequences of the same type( ( [ [ 'abc' 'pascal'python( ( ( ( - ( =( ( ('abc'' ') ( ('aa''ab')note that comparing objects of different types with is legal provided that the objects have appropriate comparison methods for examplemixed numeric types are compared according to their numeric valueso equals etc otherwiserather than providing an arbitrary orderingthe interpreter will raise typeerror exception comparing sequences and other types