You are viewing a single comment's thread. Return to all comments →
l={} for i in range(int(input())): x=input() if x not in l: l[x]=1 else: l[x]=l[x]+1 print(len(l)) for i in l: print(l[i],end=" ")
easy to understand code for noobs
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 →
easy to understand code for noobs