My issue
cook your dish here
T = int(input())
while T:
N = int(input())
A = list(map(int,input().split()))
arr =
for i in list(set(A)):
s = i*(len(A)-A.count(i))
arr.append(s)
print(min(arr))
T = T - 1
My code
# cook your dish here
T = int(input())
while T:
N = int(input())
A = list(map(int,input().split()))
arr = []
for i in list(set(A)):
s = i*(len(A)-A.count(i))
arr.append(s)
print(min(arr))
T = T - 1
Problem Link: Redundant Array Practice Coding Problem
Thanks for helping!