Set .difference() Operation

  • + 0 comments
    if __name__ == '__main__':
        Neng=int(input())
        eng=map(int,input().split())
        Nfre=int(input())
        fre=map(int,input().split())
        eng=set(eng)
        fre=set(fre)
        s=eng.difference(fre)
        print(len(s))