You are viewing a single comment's thread. Return to all comments →
score_list = [] for _ in range(int(input())): name = input() score = float(input()) mark_sheet.append([name,score]) score_list.append(score) second_lowest_mark = sorted(list(dict.fromkeys(score_list)))[1] for name,marks in sorted(mark_sheet): if marks == second_lowest_mark: print(name)
that is how I did, seeing your code, @Chaitanya_u.
Nested Lists
You are viewing a single comment's thread. Return to all comments →
that is how I did, seeing your code, @Chaitanya_u.