You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': N = int(input()) students = list() for i in range(N): students.append([input(), float(input())]) scores = set([students[x][1] for x in range(N)]) scores = list(scores) scores.sort() students = [x[0] for x in students if x[1] == scores[1]] students.sort() for s in students: print (s)
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 →