You are viewing a single comment's thread. Return to all comments →
if __name__=="__main__": n1=int(input()) l1=set(map(int, input().split())) n2=int(input()) l2=set(map(int, input().split())) l=l1.intersection(l2) print(len(l))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .intersection() Operation
You are viewing a single comment's thread. Return to all comments →