Python - Nested List, Remove Duplicates in a List

Опубликовано: 03 Апрель 2020
на канале: Manish Mahour
1,033
10

#Python #Nested #List
Python - Nested List, Remove Duplicates in a List

Given the names and grades for each student in a Physics class of N students, store them in a nested list and print the name(s) of any student(s) having the second lowest grade.

Note: If there are multiple students with the same grade, order their names alphabetically and print each name on a new line.

Sample Input
5
Harry
37.21
Berry
37.21
Tina
37.2
Akriti
41
Harsh
39

Sample Output
Berry
Harry