1
I am new to python
I have a list of tuples (key, value1, value2, ...) I simplify the tuple here so it is only of length 2. Keys contain duplicated figures.
xs = zip([1,2,2,3,3,3,4,1,1,2,2], range(11)) # simple to input
[(1, 0),
(2, 1),
(2, 2),
(3, 3),
(3, 4),
(3, 5),
(4, 6),
(1, 7),
(1...