How do I find the maximum value of the lists in a dictionary of lists without using a loop? My dictionary looks like:
data = {'key1': list1, 'key2': list2, ... 'keyn': listn}
if I use:
m = max(data.iterkeys(), key=lambda k: data[k])
the output is:
m = 'keyn'
which I don't want to have.