• Monkey Typing - Help...

 

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"

.