You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': # n=input() li1=[] for i in range(int(input())): li=[] name = input() li.append(name) score = float(input()) li.append(score) li1.append(li) name1=[] li2=[i[-1] for i in li1] for k in li1: if k[-1]==sorted(set(li2))[1]: name1.append(k[0]) for nam in sorted(name1): print(nam)
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 →