>>> inner = (combFreq, leastTwo) >>> inner (2, ((1, 'b'), (1, 'd'))) >>> theRest[1] (2, 'c') >>> theRest[1] < inner Traceback (most recent call last): File "", line 1, in TypeError: '<' not supported between instances of 'str' and 'tuple'