You are viewing a single comment's thread. Return to all comments →
n = int(input()) l= []
for i in range (0,n) : l.append(input())
s = set(l)
print(len(list(s)))
l1 = [] for char in l : if char not in l1 : l1.append(char)
for char in l1 : c = l.count(char) print(c,end=" ")
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 →
n = int(input()) l= []
for i in range (0,n) : l.append(input())
s = set(l)
print(len(list(s)))
l1 = [] for char in l : if char not in l1 : l1.append(char)
for char in l1 : c = l.count(char) print(c,end=" ")