You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': LST = [] for _ in range(int(input())): name = input() score = float(input()) LST.append([name, score]) LST.sort() #print(LST) SECOND = sorted({s for _, s in LST})[1] for name, score in LST: if SECOND == score: print(name)
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 →