You are viewing a single comment's thread. Return to all comments →
from collections import Counter n = int(input()) words_list = [input() for n in range(n)] words_count = Counter(words_list) print(len(words_count)) print(*words_count.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 →