How to run the loop using for


#1


https://www.codecademy.com/courses/python-beginner-en-IZ9Ra/0/4?curriculum_id=4f89dab3d788890003000096#

Oops, try again. fizz_count(['fizz', 'buzz']) returned 0 instead of the correct answer: 1


it should count all the no. of fizz in the list


Replace this line with your code. 
def fizz_count(x):
    count = 0
    for item in x[0:]:
        if item == "fizz":
            count = count + 1
            return count


#2

a function ends the moment a return keyword is reached, in your case in the first run of the loop, you might want to change the indent so the whole for loop can run


#3

can you tell me exactly how to do it?


#4

no need to bother.. did it ..thanks anyway