This commit is contained in:
Marege 2026-10-06 17:33:23 +02:00
parent 6037ee6640
commit 13f2b81fe9

View File

@ -13,6 +13,7 @@ def count_words(sentence):
continue continue
count = 0 count = 0
for currentword in cleaned:#дивимся чи є в інших таке якщо є то + for currentword in cleaned:#дивимся чи є в інших таке якщо є то +
currentword = currentword.lower()
if currentword == word: if currentword == word:
count += 1 count += 1
result[word] = count result[word] = count