Not really sure why this doesnt work...
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