Light Mode
Dark Mode
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
Created: Sept. 10, 2014, 4:58 p.m.
Updated: Aug. 8, 2016, 9:55 a.m.
1
5
User avatar
Grimston