Set .difference() Operation

  • + 0 comments

    Enter your code here. Read input from STDIN. Print output to STDOUT

    n = int(input()) eng = set(map(int, input().split()))

    m = int(input()) french = set(map(int, input().split()))

    diff = eng.difference(french) print(len(diff))