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)