List and functions


#1

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

return outside function???\

I need to correct this so I can move on ASAP. any ideas?


#2

Check yours against this...

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