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