From 7c30fcdbc0037195b6c1253fc9577ce195cf6dd9 Mon Sep 17 00:00:00 2001 From: Marege Date: Tue, 6 Oct 2026 18:15:59 +0200 Subject: [PATCH] U4Fix7 --- u4/word_count.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/u4/word_count.py b/u4/word_count.py index 9494096..bce7244 100644 --- a/u4/word_count.py +++ b/u4/word_count.py @@ -9,6 +9,8 @@ def count_words(sentence): result = {} for word in cleaned: word = word.lower().strip("'") + if word == "": + continue if word in result: # дивимся чи є якщо є то пропускаєм continue count = 0