Skip to content

Commit e450313

Browse files
authored
Create nested_lists.py
1 parent 894eb2d commit e450313

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Basic Data Types/nested_lists.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
if __name__ == '__main__':
2+
scores = list()
3+
for _ in range(int(input())):
4+
scores.append([input(), float(input())])
5+
scores.sort()
6+
7+
second_min = sorted(list(set(score for name, score in scores)))[1]
8+
print("\n".join(i[0] for i in sorted(scores) if i[1] == second_min))

0 commit comments

Comments
 (0)