Lists + Functions - I don't understand it! :(


Could someone please explain how to write the code and what each line does.


Perhaps you should start by considering what the task is, divide it into steps and then implement those steps one at a time.


still not helping xD


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


You have the majority of your code correct the last two lines need to be adjusted.

print fizz_count

Your invoking the fizz_count function and then trying to print it out to the console. What you would want to do is store the fizz_count function results in a variable and then print to console what is stored in the variable.