U4Fix2
This commit is contained in:
parent
a68ea57a4d
commit
b46f9b8e9e
@ -5,7 +5,7 @@ def count_words(sentence):
|
||||
cleand += i
|
||||
else:
|
||||
cleand += " "
|
||||
cleaned = cleand.split() # пакуєм в ліст
|
||||
cleaned = (cleand.split()).lower() # пакуєм в ліст
|
||||
result = {}
|
||||
for word in cleaned:
|
||||
if word in result: # дивимся чи є якщо є то пропускаєм
|
||||
|
||||
Loading…
Reference in New Issue
Block a user