We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
if name == 'main':
num=int(input())
list1=[]
list2=[]
final=[]
for i in range(num):
name = input()
score = float(input())
list1.append([name,score])
list2.append(score)
Nested Lists
You are viewing a single comment's thread. Return to all comments →
if name == 'main': num=int(input()) list1=[] list2=[] final=[] for i in range(num): name = input() score = float(input()) list1.append([name,score]) list2.append(score)
list1=sorted(list1) list2=sorted(list(set(sorted(list2))))
for i in range(num): if list1[i][1]==list2[1]: print(list1[i][0])