Yeah so doing the monkey typing thing I got this but I can't see why it counts 2 on the first test. Its not complete for the others yet but its not even working for the first one..
def count_words(text, words):
count = 0
for i in words:
if i in text:
count += 1
count = count
return count
return 0
Created at: 2014/09/10 16:58; Updated at: 2016/08/08 09:55