in python sort and group by common elements in a list
in python sort and group by common elements in a list Question: I will try to express myself clearly. Would anyone know how to order elements with common values in a list? I made a drawing to explain it better. I have a list with several letters and their two number. ev=((‘A’,(1,2)), (‘M’,(0,40)),(‘S’,(17,32)),(‘Z’,(2,7)),(‘K’,(7,12)),(‘U’,(40,18)),(‘R’,(32,5)),(‘V’,(28,47)),(‘X’,(5,28))) and after …