I don't understand why I am keep getting the error:
Oops, try again. an exception was raised for fizzcount(['fizz', 'buzz']): list indices must be integers, not_
I've tried a couple of things but can't seem to get the solution. What am I doing wrong?
# Write your function below! def fizz_count(items = ["fizz", "cat", "fizz"]): count = 0 for item in items: if item == items["fizz"]: count += 1 print count