You are viewing a single comment's thread. Return to all comments →
if name == 'main': l = [] for _ in range(int(input())): name = input() score = float(input()) l.append([name, score])
scores = sorted(list(set(sc[1] for sc in l))) name = [s[0] for s in l if s[1] == scores[1]] for i in sorted(name): print(i)
`
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
if name == 'main': l = [] for _ in range(int(input())): name = input() score = float(input()) l.append([name, score])
`