You are viewing a single comment's thread. Return to all comments →
second_highest = sorted(list(set([marks for name, marks in marksheet])))[1]
What is meaning of [1] at end of snippet?
Nested Lists
You are viewing a single comment's thread. Return to all comments →
What is meaning of [1] at end of snippet?