Lists + function


the code is working but i can't understand

Write your function below!

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


Unclear what you want to know and what's stopping you from finding out yourself.

I suggest reading your code and the first thing you see that you don't understand, look it up.

Or if you understand each component then read it until you understand the whole.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.