I am stuck on the List + Functions exercise (4. List + Functions)
I am getting the following error message:
Oops, try again. fizz_count(['fuzz', 'fizz', 5, 'fizz', 'fuzz', 'fizz']) returned 0 instead of the correct answer: 3
I am not sure what is supposed to happen. Where do I include my list for the function to run?
def fizz_count(x): count = 0 for item in x: if item == 'fizz': count+= 1 return count