You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': student=[] for _ in range(int(input())): name = input() score = float(input()) student.append([name,score]) score =[i[1] for i in student] unique_scores= sorted(set(score)) second_lowest_score = unique_scores[1] second_lowest_students=[i[0] for i in student if i[1] == second_lowest_score] second_lowest_students.sort() for student_name in second_lowest_students: print(student_name)
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 →