Lists + functions HELP


I can't figure out what is wrong this is my code

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

When I submit this error code pops up
Oops, try again. fizz_count(['fizz', 'buzz']) returned 0 instead of the correct answer: 1

Appreciate your help
P.S code is indented


Remove the brackets here, [ ]

and make sure your return statement is indented as such,

for loop:
    #some code
return statement


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.