I am stuck at the following exercise:
I'm getting an error message : "File "python", line 9
SyntaxError: 'return' outside function"
I had written the following piece of code:
def fizz_count(x): count = 0 for item in x: if item == "fizz": count = count + 1 return count
Please tell me where am I doing a mistake.