Getting erroe while returning number of fizz in list


#1




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


#2

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


#3

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