If I don't use 'map' in the below code while taking input for variable 's' & 'd' then it shows a runtime error.I didn't get the reason behind it as I hoped that input could had been taken without 'map'.
t= int(input())
for x in range(t):
n =int(input())
s=list(map(int,input().split()))
d=list(map(int,input().split()))
count = 0
for i in range(n):
if s[i]==d[i]:
count += 1
print(count)
Testcase- Input
2--- #(t)
4----#(n)
1 2 3 4 ---#(s)
2 1 3 4-----#(d)
output -
2
#output is 2 because only 2 digits (3&4) match in line s&d in values and index position