A Day at the Supermarket. List + Functions


#1



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


Could someone help me? The error message is " The function fizz_count seems to be missing!", though there is a right number in the interpreter. Here is my code:


def fixx_count(x):
    count = 0
    for item in x:
        if item == "fizz":
              count = count + 1
    return count
    
fizzes = ["fizz", "fizz", "der"]
count = fixx_count(fizzes)
print count


#2

Double check what your function is named compared with what they are asking the function to be named.


#3

Thanks) I typed "fixx" instead of "fizz"


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.