This commit is contained in:
Marege 2026-10-06 18:15:59 +02:00
parent 39496b23c8
commit 7c30fcdbc0

View File

@ -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