Getting erroe while returning number of fizz in list


# Write your function belo
def fizz_count(x):
    for s in x:
        if type(s)==str:
            if s.lower()=='fizz':
    return c


don't convert to lowercase, Fizz for example shouldn't increase the count


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.