Lists + Functions


Hey guys, I am stuck on this but I can't figure out where I have gone wrong...
Any help would be much appreciated. Thanks!

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

it gives me this error:

File "python", line 5
if item == "fizz"
SyntaxError: invalid syntax


Hi this part

if item == "fizz"

You missing the : after "fizz"


thanks that helped alot :slightly_smiling: