Set .difference() Operation

  • + 0 comments

    Here's my code:

    el = int(input())
    e = list(map(int, input().split()))[:el]
    fl = int(input())
    f = list(map(int, input().split()))[:fl]
    print(len(list(set(e).difference(f))))