Uloha 4
This commit is contained in:
parent
b8b272a886
commit
13993fc87c
@ -12,9 +12,9 @@ def count_words(sentence):
|
||||
if word.strip("'"):
|
||||
words.append(word.strip("'"))
|
||||
|
||||
result = {}
|
||||
result = {}
|
||||
|
||||
for word in words:
|
||||
result[word] = result.get(word, 0) + 1
|
||||
|
||||
return result
|
||||
return result
|
||||
|
||||
Loading…
Reference in New Issue
Block a user