I have entered the following code but it keeps returning fizz_count as 1 and I get an error message.
Write your function below!
count = 0
for item in x:
if item == "fizz":
count = count + 1
bubbles = ["fizz", "cat", "fizz"]
Can anyone tell me what I'm doing wrong and why it doesn't return 2?
Replace this line with your code.