It should print of, us , that in top most 10 common words
Hi @charu_sidana Your code is almost correct. Do you think the order of (val, key)
is correct?
When you are sorting using lst.sort(reverse=True)
, is it sorting by word or its count?
Hope this helps!