You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': alist=[] for _ in range(int(input())): name = input() score = float(input()) alist.append([name,score]) second_highest = sorted(set([marks for name, marks in alist]))[1] print('\n'.join([a for a,b in sorted(alist) if b == second_highest]))
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 →