Python 2 includes a cmp function which allows you to determine if one object is less than, equal to, or greater than another object. This function can be used to pick a choice out of a list based on one of those three options.
Suppose you need to print 'greater than' if x > y, 'less than' if x &...