Set .intersection() Operation

  • + 0 comments

    n=int(input()) eng=set(map(int,input().split())) m=int(input()) french=set(map(int,input().split())) both=eng.intersection(french) numboth=list(both) print(len(numboth))