human
4. Comparing
assistant
#Here is the Python program you requested.
# Tuples are compared by comparing their members in order
(3,9) < (5,3)

(3,'banana') < (3,'apple')

(3,'banana') == (3,'ban')

# Tuple members are only compared if needed.
# Here is an uncomparable type
class mytype:
    def go():
        pass

a = mytype()
b = mytype()

(3, a) < (5,b)

# but the folllowing code would generate an error because a and b would need to be evaluated

#(3,a) < (3,b)