4/13 A day at the supermarket


#1

def fizz_count(x):
count = 0
for item in x:
if x == 'fizz':
count = count + 1
return total

It doesn't work! Is anything wrong?


#2

modify your last line.
not total but count.


#3

It still won't work.
def fizz_count(x):
count = 0
for item in x:
if x == 'fizz':
count = count + 1
return total


#4

return count sorry!!!!!!!!!!!!!!!!!!!