I am trying to count the word fizz using python. However it is giving me an error.
def fizz_count(x):
count =0
for item in x :
if item== "fizz":
count=count+1
return count
item= ["fizz","cat", "fizz", "Dog", "fizz"]
example= fizz_count(item)
print example
i checked with indentation but still it does not work. Where i am doing wrong?