Doesn't return the correct answer


#1

i used this exact code:

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

But it still says it doesn't return the correct answer. What's going wrong? I don't know if this could be important but my function fizz_count isn't getting highlighted in red. Thanks!


#2

Cannot tell by looking, but check to make sure your indentation is correct.


#3

def fizz_count(variable):
count = 0
for item in variable:
if item == "fizz":
count = count + 1
return count
that's my code with correct indentation but it's not still working


#4

Still can't tell. Must be a code sample formatting problem.


#6