4/10 What did I do wrong?


#1

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"...


#2

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;) )