Set .difference() Operation

  • + 0 comments

    n = int(input()) a = set(input().split()) e =int(input()) b = set(input().split()) r = a.difference(b) print (len(r)) We need to perform the same technique like intersection() method