You are viewing a single comment's thread. Return to all comments →
total_words=int(input()) words= [str(input()) for string in range(total_words)] # Solution 1 output=dict() for word in words: if word not in output: output[word]=1 else: output[word]+=1 print(len(output.keys())) print(*output.values(),sep=" ")
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 →