From 13993fc87c858e6ef5f6cf333ec60a48442dee52 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 6 Oct 2026 14:24:38 +0200 Subject: [PATCH] Uloha 4 --- u4/word_count.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u4/word_count.py b/u4/word_count.py index 32fbea0..bf597d7 100644 --- a/u4/word_count.py +++ b/u4/word_count.py @@ -12,9 +12,9 @@ def count_words(sentence): if word.strip("'"): words.append(word.strip("'")) - result = {} + result = {} for word in words: result[word] = result.get(word, 0) + 1 - return result + return result