I am stuck on 4/13


#1

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

I don't know where I am going wrong.


#2

This worked for me.

# Write your function below!
def fizz_count(x):
count = 0
for item in x:
if item == "fizz":
count = count + 1
return count


#3

Yeah it works. I just tested it


#5

def fizz_count(x):
count = 0
for item in x:
if item == "fizz":
count = count + 1
return count
typed this still won't work.


#6

Try this. copy it and paste it in the editor

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

i just took this code and put it in the editor and i passed


#7

The placement of your code makes a difference." Copy" your code, hit "Reset Code" and "paste" it back into the editor and make sure it looks like rydan's code