<In what way does your code behave incorrectly? Include ALL error messages.>
I am having an indentation error. Even though my counter seems to be located correctly, I keep getting the error below.
File “python”, line 5
count = count + 1
IndentationError: unindent does not match any outer indentation level
<What do you expect to happen instead?>
Ideally, there would be no error message and my fizz counter would return the number of fizz’s counted. When I print the count total, it prints the correct amount. But the function is not returning the correct number to the system. If one fizz appears, CodeAcademy says my function only counts 0, but my code will print 1 if I were to call for the function to print, as I did previously to check the logic.
def fizz_count(x): count = 0 for item in x: if item == 'fizz': count = count + 1 return count