You are viewing a single comment's thread. Return to all comments →
a=input() //If m contains more element than a , It is not occur an error. // this logic only for no of elements not specific no of elements
m=set([int(i) for i in input().split()]) b=input() n=set([int(i) for i in input().split()]) print(len(m&n))
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 →
a=input() //If m contains more element than a , It is not occur an error. // this logic only for no of elements not specific no of elements
m=set([int(i) for i in input().split()]) b=input() n=set([int(i) for i in input().split()]) print(len(m&n))