avp26/wordcounttest.py
2026-10-06 11:22:48 +00:00

8 lines
105 B
Python

from collection import counter
import re
def count_words(sentence):
sentence = sentence.lower