A Day at the Supermarket. List + Functions



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


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


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


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