I cannot find a way yet to make the code read a count for the word "fizz".
I expect for it to count the word "fizz" each time, but I cannot find a way for the code to register a count for the string "fizz". What do I need to do. I have literally been stuck on this for a year.
def fizz_count(y): count=0 for count in y: string = "fizz" count+=1 return count x=["fizz","buzz","fizz"] fizz = fizz_count(x) print fizz