You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': L = list() for _ in range(int(input())): name = input() score = float(input()) L.append([name,score]) scores = sorted(list(set([ x[1] for x in L ]))) second_lowest = scores[1] second_lowest_names = [ x[0] for x in L if x[1] == second_lowest ] for x in sorted(second_lowest_names): print(x)
Nested Lists
You are viewing a single comment's thread. Return to all comments →