List + Functions


#1

In this exercise code should count every "fizz" on list, but it doesn't.
I got this message:
"Oops, try again. fizz_count(['fizz', 'buzz']) returned 0 instead of the correct answer: 1"
Please, help me to understand what's wrong with it.
I'm out of ideas here.

def fizz_count(x):
    count = 0
    for n in x:
        if x=="fizz":
             count = count + 1
    return count
a = ['fizz', 'one', 'fizz', 'two']
my = fizz_count(a)
print my

#2

x is a list, how can it equal a string?


#3

AAAAAAAAAAAAAAAAAAAAAAAAAAA!
Thank You :slight_smile:


#4