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
- Collections
- Word Order
- Discussions
Word Order
Word Order
Sort by
recency
|
1534 Discussions
|
Please Login in order to post a comment
Without ordered_dict or Counter
lst = [] for i in range(int(input())): lst.append(input()) ct = Counter(lst) print(len(ct.keys())) print(*ct.values()) `print(*ct.values())
`