forked from p46318075/CodePattern
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
142 B
7 lines
142 B
9 months ago
|
import operator, collections
|
||
|
|
||
|
def top25(word_list):
|
||
|
counts = collections.Counter(w for w in word_list)
|
||
|
return counts.most_common(10)
|
||
|
|