Let's say I have a list:
lista = [(1,1), (1,2), (1,3), (2,6), (2,4), (3,1), (3,2)]
And I want to know the maximum and minimum values of the second element, grouped by the first. That is:
{ 1:(1,3), 2:(4,6), 3:(1,2) }
I thought about us...
asked by
19.03.2015 / 21:05