4. Lists + Functions


new to code in general
this is my code:

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

This is the error message:"Oops, try again. fizz_count([5, 8, 'fizz', 'fizz', 'fuzz', 'fizz', 'fIzZ', 5]) returned 1 instead of the correct answer: 3 "


your code looks good but make sure to indent properly and be careful while using upper and lower case letters, :smile:


thanks :smiley:
just ran the code through again and it worked this time 0.o