Day at the supermarket 4/13 help


#1

I have tried many codes for this and i can not figure it out. Please help.
current code
def fizz_count(x):
count = 0
for item in x:
if item == "fizz":
count = count + 1
return count
result = fizz_count(["fizz","cat","fizz"])
print result


#2

Hi it's maybe a indent problem so here your code with the right indent

def fizz_count(x):
    count = 0
    for item in x:
        if item == "fizz":
            count = count + 1
    return count 
result = fizz_count(["fizz","cat","fizz"])
print result