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
|
4784 Discussions
|
Please Login in order to post a comment
def second_lowest(lst): sort = sorted(lst, key=lambda x: x[1]) lowest = sort[0][1] sec_low = None
if name == 'main': listt = [] for _ in range(int(input())): name = input() score = float(input()) listt.append([name, score])
if name == 'main': records = [] for _ in range(int(input())): name = input() score = float(input()) records.append([name, score]) # print(records)