You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': a=[ ] list_score=[ ] list_score2=[ ] list_sec_low=[ ] for _ in range(int(input())): name = input() score = float(input()) x=[name,score] a.append(x) list_score.append(score) list_score.sort``() e=min(list_score) for i in list_score: if i != e: list_score2.append(i) for c in a: if c[1]==min(list_score2): list_sec_low.append(c[0]) list_sec_low.sort() for d in list_sec_low: print(d)
Nested Lists
You are viewing a single comment's thread. Return to all comments →