4/13 a day at the supermarket


here is my code, what is wrong
def fizz_count(x):
for word in x:
if word=="fizz":
count= count+1
return count

thanks in advance


Post your whole code with error.


your syntax is wrong in python space can create error so you have to keep indentation in mind look at the picture


Try count = count+=1

Other than that I would need to see the actual code with indents and what not. GL


Other than the indentation errors I see nothing wrong. What error is it showing?


A post was split to a new topic: 4/13 day at the supermarket