16 lines
283 B
Python
16 lines
283 B
Python
|
def word_count(text):
|
||
|
|
||
|
text = [("Я пришел, я ушел, я нашел")]
|
||
|
text = text.lower()
|
||
|
for i in text:
|
||
|
if i in text:
|
||
|
text[i] = text[i] + 1
|
||
|
else:
|
||
|
text[i] = -1
|
||
|
return text
|
||
|
|
||
|
|
||
|
p = word_count
|
||
|
for p in text:
|
||
|
print(p)
|