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.
marksheet=[]
scorelist=[]
if __name__ == '__main__':
for _ in range(int(input())):
name = input()
score = float(input())
marksheet+=[[name,score]]
scorelist+=[score]
b=sorted(list(set(scorelist)))[1]
for a,c in sorted(marksheet):
if c==b:
print(a)
Nested Lists
You are viewing a single comment's thread. Return to all comments →