You are viewing a single comment's thread. Return to all comments →
n = int(input()) words = {} for i in range(n): key = input() if key in words: words[key] += 1 else: words[key] = 1 print(len(words)) print(*words.values())
Seems like cookies are disabled on this browser, please enable them to open this website
Word Order
You are viewing a single comment's thread. Return to all comments →