I'm not getting it please help


#1


List + Functions

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

x = ["fizz", "buzz", "fizz"]
count = fizz_count(x)
print count

Oops, try again. fizz_count([2, 'buzz'])returned None instead of the correct answer : 0


Replace this line with your code.


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.