Lists + Functions


#1

Where is the error in my code?

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

#2

Your indent for return.


#3

You didn't call the function and yes! Indentation error


#4

My indent to return is ok, I pasted another code and it's still not working
"
def fizz_count(x):
count = 0
for key in x:
if key == "fizz":
count = count + 1
return count

"


#5

Solution