Can any one tell me what is the wrong in my code

Problem Code:CFMM

t = int(input())
for _ in range(t):
N = int(input())
st = “”
c=0
for i in range(N):
cur = input()
st = st + cur
lis = list(st.strip(“”))
set1 = set(lis)
set1 = list(set1)
ls = len(set1)
count = []
for j in range(ls):
for i in range(len(lis)):
if lis[i] == set1[j]:
c=c+1
count.append(c)
c=0
num = min(count)
print(num)

Check the following update to your code.

Accepted

1 Like

thanks,
it works I understood that.