Set .union() Operation

  • + 0 comments

    Here's my code:

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