You are viewing a single comment's thread. Return to all comments →
n1=int(input()) set1=set(map(int,input().split())) n2=int(input()) set2=set(map(int,input().split())) print(len(set1.intersection(set2)))
Set .intersection() Operation
You are viewing a single comment's thread. Return to all comments →