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
|
1642 Discussions
|
Please Login in order to post a comment
What about this:
without any modules
print(len(result)) for i in result.values(): print(i, end = ' ')
from collections import Counter n=int(input()) word=[] for _ in range(n): word.append(input()) a=list(Counter(word).values()) print(len(a)) for i in a: print(i, end=' ')