I request your kind assistance to validate the following code, which tells me that shows 0 instead of correct judgment 1. That is what is wrong with the code? I have not been able to find the solution.
def contar_burbujas(x): count = 0 for item in x: print "i get executed" if item == 'fizz': count = count + 1 return count print contar_burbujas(['fizz','fIzz'])
Thank you very much.