We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Basic Data Types
- Nested Lists
- Discussions
Nested Lists
Nested Lists
Sort by
recency
|
4814 Discussions
|
Please Login in order to post a comment
if name == 'main': l = [] for _ in range(int(input())): name = input() score = float(input()) l.append([name, score])
`
if name == 'main': l = [] for _ in range(int(input())): name = input() score = float(input()) l.append([name, score])
`
if name == 'main':
records = [] for _ in range(int(input())): name = input() score = float(input())
n = []
for _ in range(int(input())): name = input() score = float(input()) n.append([name, score])
second_lowest = sorted({score for _, score in n})[1]
for name, score in sorted(n): if score == second_lowest: print(name)