List+Functions


#1

def fizz_count(x):
x=['fizz','buzz','fizz']
count=0
for x in fizz_count:
if x==fizz:
count=count+1
return count
This is the code i have written..But its showing
Oops, try again. an exception was raised for fizz_count(['fizz', 'buzz']): 'function' object is not iterable
as the error..Can anyone help me out...


#2