4/10 What did I do wrong?


I made a function but it doesn't seem to function....what did I do wrong? I don't see it.

def fizz_count(x):
    count = 0
    for item in x:
        if item == 'fizz':
            count += 1
        print count

Edit: never mind, indentation fail of "print count"...


return count, first of all. secondly, you have return count under the function, not the for loop. (un-indent the print count, and replace it with return;) )