Word Order |HackerRank solutions in python3

from collections import Counter

n=int(input())
l=list()

for _ in range(n):
    l.append(input())
x=Counter(l)
#print(x)

print (len(x))

print(*x.values())

Comments

Popular posts from this blog

13 Reasons Why !!!!

Dedicated to you

Guitar Chords of Timilai - JPT ROCKERZ