Afternoon Fellow Coders due to being busy I haven't been able to code so I am going to redo super market all over again and having some trouble with this code:
# Write your function below! def fizz_count(x): count = 0 for item in x: if item == 'fizz': count += 1 print count x = ["fizz","cat","fizz"] fizz_count(x)
It says the answer is 1 instead of 2 which is the real answer so I don't know please help me out! Thanks for all the help in advance!