You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': recs = [] for _ in range(int(input())): name = input() score = float(input()) recs.append([name, score]) low_2nd = sorted(set([score for _, score in recs]))[1] low_2nd_names = [name for name, score in recs if score == low_2nd] for name in sorted(low_2nd_names): print(name)
Nested Lists
You are viewing a single comment's thread. Return to all comments →