Hi I have coded the following for one of my python exercises in code academy.
count = 0
for item in x:
if item == fizz:
count = count + 1
When I submit this code, I get the error : global name 'fizz' is not defined
But I tried adding the statement : global fizz inside the function. Still I get the same error. Please tell me where I am going wrong.