You are viewing a single comment's thread. Return to all comments →
students = [] grades = [] if __name__ == '__main__': for _ in range(int(input())): name = input() score = float(input()) students.append([name,score]) grades.append(score) grades.sort() students.sort() second_lowest = 0 for i in grades: if(i != grades[0]): second_lowest = i break for i in range(0,len(students)): if(students[i][1] == second_lowest): print(students[i][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 →