I have a list l1 that contains multiple lists that contains a letter with a number.
For each letter I want to get the pair with the highest number.
l1 = [['A', 4.54], ['A', 1.23], ['B', 1.23], ['A', 9.23], ['B', 6.23], ['C', 10.55]]
this is what I would like to get:
l2 =[['A', 9.23], ['B', 6.23], ['C', 10.55]]
I can't seem to solve this. Any suggestions ?