You are viewing a single comment's thread. Return to all comments →
python_students = [] for _ in range(int(input())): name = input() score = float(input()) python_students.append([name, score]) ordered_score = sorted(set([scr for _, scr in python_students])) second_lowest_score = sorted([nm for nm, scr in python_students if scr == ordered_score[1]]) print(*second_lowest_score, sep = '\n')
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 →