I\'ve got a structure of the form:
>>> items [([[0, 1], [2, 20]], \'zz\', \'\'), ([[1, 3], [5, 29], [50, 500]], \'a\', \'b\')]
The
Yet another way to get the argmax is:
def argmax(lst): return max(range(len(lst)), key=lst.__getitem__)