I’m not sure what is wrong with my code. I’ve read around this forum and it seems identical to the answers that have been accepted as correct, but I’m not sure why mine isn’t working. It keeps giving me an error that it is finding 0 or 1, when the correct number is something else (like 2 or 3). Could someone point out what I’m missing?
def fizz_count(x): count = 0 for word in x: if (word == "fizz"): count = count + 1 return count