I need help. WHat is wrong? asap 10/13


#1

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

print count


#2

what is x? where is it defined in the function?


#3

i dont know what argument to put


#4

you must replace the count here with x


#5

Traceback (most recent call last):
File "python", line 4, in
NameError: name 'x' is not defined

It says this when i run this
def fizz_count(x):
count = 0
target = "fizz"
for each in x:
if each == target:
count = count + 1

print count


#6

def fizz_count(x):
    count = 0
    target = "fizz"
    for each in x:
        if each == target:
            count = count + 1
    print count
    
    
fizz_count(["fizz", "buzz", "fizz"])

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

fizz_list = ["fizz","nope","fizz","nope"]
print_this = fizz_count(fizz_list)
print print_this`indent preformatted text by 4 spaces`

#8

ohh oops delete "indent preformatted text by 4 spaces"