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