Intersection

 Intersection



l1=[]
l2=[]
l3=[]
an=int(input())
bn=int(input())
for i in range(0,an):
  v1=int(input())
  l1.append(v1)
for i in range(0,bn):
  v2=int(input())
  l2.append(v2)
l3=list(set(l1) & set(l2))
print("The intersection is")
print(l3)

Comments