4/13 a day at the supermarket


#1

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

thanks in advance


#2

Post your whole code with error.


#3

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


#4

Try count = count+=1

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


#5

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


#6

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


#7