Answer:
See Explaination
Step-by-step explanation:
m=int(input("Please specify the number of elements in first list : "))
n=int(input("Please specify the number of elements in second list : "))
m1=1
list1=[]
n1=1
list2=[]
while m1<=m:
r1=int(input("input element {} of list1: ".format(m1)))
list1.append(r1)
m1+=1
while n1<=n:
list2.append(int(input("input element {} of list2: ".format(n1))))
n1+=1
def Intersection(list1,list2):
return set(list1).intersection(list2)
print("The intersection of two lists is {}".format(Intersection(list1,list2)))