skip to content
developertype

snippets

filter:96 snippets
py-gen-wordcount·python·general
from collections import Counter

def word_count(text):
    words = text.lower().split()
    return Counter(words).most_common(10)