i’ve written a simple program to find number of common elements among two lists…i’m getting eof error in first line itself…help me find where the problem is
t=int(input())
while(t):
count=0
n=input()
l1=list(map(int,input(),split()))
l2=list(map(int,input().split()))
for x in l1:
if x in l2:
count=count+1
print(count)
t=t-1