Set .intersection() Operation

  • [deleted]Challenge Author
    + 0 comments
    n = int(input())
    eng = set(map(int,input().split()))
    b = int(input())
    fre = set(map(int,input().split()))
    
    print(len(eng.intersection(fre)))