So I'm on the lesson where you have to determine the amount of soda in a list or something I've done the assignment, but, well, it's not working. My code is:
def fizz_count(x): count = 0 for soda in x: if x == "fizz": count = count + x return count
Although the function is supposed to return 1, for some reason it returns 0. What's wrong?