Set .difference() Operation

  • + 0 comments

    n = int(input()) count = 0 english_newspaper = set(map(int,input().split())) m = int(input()) french_newspaper = set(map(int,input().split())) x = english_newspaper.difference(french_newspaper) for i in x: count += 1 print(count)