From ee6aa451fe5537218d3b2665b364be97d716b964 Mon Sep 17 00:00:00 2001 From: Roman Dmytruk Date: Wed, 7 Oct 2026 13:31:44 +0000 Subject: [PATCH] Update 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 6ae7fa3..fdcda35 100644 --- a/u4/word_count.py +++ b/u4/word_count.py @@ -2,7 +2,7 @@ import re from collections import Counter def count_words(text: str) -> dict[str, int]: - text = text.lower + text = text.lower() words = re.findall(r"[a-z0-9áäčďéíľňóôŕšťúýž]+(?:'[a-z0-9áäčďéíľňóôŕšťúýž]+)?", text)