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
|
4739 Discussions
|
Please Login in order to post a comment
stored =[] s=set() for _ in range(int(input())): name = input() score = float(input()) stored.append([name,score]) s.add(score)
The code check compares order ([a,b] != [b,a]) but this constraint is not mentioned in the problem description.
if name == 'main': n=int(input()) l=[] for _ in range(n): name = input() score = float(input()) l.append([name,score])