This commit is contained in:
Marege 2026-10-06 17:10:34 +02:00
parent a68ea57a4d
commit b46f9b8e9e

View File

@ -5,7 +5,7 @@ def count_words(sentence):
cleand += i cleand += i
else: else:
cleand += " " cleand += " "
cleaned = cleand.split() # пакуєм в ліст cleaned = (cleand.split()).lower() # пакуєм в ліст
result = {} result = {}
for word in cleaned: for word in cleaned:
if word in result: # дивимся чи є якщо є то пропускаєм if word in result: # дивимся чи є якщо є то пропускаєм