Suppose there is a list like [name,score]
record = [['Harry',37.21],['Berry',37.21],['Tina',37.2],['Akriti',41],['Harsh',39]]
I want to print the name of record which has second lowest score. If two records have same lowest score I need to sort them based on their names and then print. I know we can use
record.sort(key..)
to get values sorted according to score. But how to check for second lowest score and then check for name.
record[1]if the list is sorted from low to high based on its score