You are viewing a single comment's thread. Return to all comments →
Based on your code, I got this solution. Learned a lot. (py3)
student_marks = [[input(), float(input())] for _ in range(int(input()))] snd_mark = sorted(list(set([mark for stu, mark in student_marks])))[1] print(*sorted([stu for stu, mark in student_marks if mark == snd_mark]), 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 →
Based on your code, I got this solution. Learned a lot. (py3)