I have a nested linked list:
list_a = [[A, 12.1], [B, 15.6], [C, 9.8], [D, 12.1], [F, 96.3]]
I have sorted the list successfully using sorted(list_a)
, according to the second elements of the sub-lists. How do I get output A and D(first-elements of the list with second-smallest second-elements)?