def count_words(text, words):
t=text.split()
w=list(words)
for i in range(0,len(w)):
for j in range(0, len(t)):
if words[i] in t[j]:
cnt+=1
return cnt
in command line checking it seems ok... but when I "Run and Check" I get
"TypeError: 'set' object does not support indexing"
Created at: 2016/03/27 21:44; Updated at: 2016/03/28 23:31