4.Lists + Functions


#1

I dont get this :open_mouth: what is wrong?
def fizz_count(x):
count = 0
for n in x:
if x == "fizz":
count = count + 1
return count

lost = [1,2,4,6,8]
count = fizz_count(lost)
print count
The message i get is: Oops, try again. fizz_count(['fizz', 'buzz']) returned 0 instead of the correct answer: 1


#2

You could consider things like whether your function is checking each value in the input and if they are correctly identified as fizz or not fizz