Not seeing the problem

#1

Above is the exercise I am doing. The thing is my answer is wrong and I don't know why.

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

return count``````

The Error is:

#2

In this part something is not right.

#3

@arcjumper89647. The syntax of if statement is wrong. Correct it as below and execute the code.
** if(x=="fizz"):**

#4

Actually adding parantheses won't change anything. That's not where problem is.

#5

@dawidrz87 The list statement and call function statements are missing. Please find my code below which i got through

``````list = ["fizz", "cat", "fizz"]
def fizz_count(x):
count = 0
for a in x:
if(a=="fizz"):
count = count +1
return count
print fizz_count(list)``````

#6

@samauden your code is ok, but if you compare this

with your

and you should find the differece, and it is not in the parentheses

#7

As per my knowledge,that's the only difference. The syntax of if statement is wrong in the code.Please let me know if you figure out the problem
for item in x:
if x == "fizz":

#8

Code should be

``````for item in x:
if item=="fizz":``````