From 007674c96b2bd61e7496a80c41dcb7b0a7ffea45 Mon Sep 17 00:00:00 2001 From: Oleksandr Mateshchuk Date: Tue, 6 Oct 2026 12:31:41 +0000 Subject: [PATCH] Aktualizovat u4/word_count.py --- u4/word_count.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u4/word_count.py b/u4/word_count.py index 5c18823..0e33fd9 100644 --- a/u4/word_count.py +++ b/u4/word_count.py @@ -2,7 +2,7 @@ import re from collections import Counter -def word_count(text): +def count_words(text): pattern = r"\w+(?:'\w+)?" words = re.findall(pattern, text.lower()) return dict(Counter(words)) \ No newline at end of file