Set .union() Operation

  • + 0 comments

    For Python3 Platform

    n = int(input())
    Eng = set(map(int, input().split()))
    b = int(input())
    Frn = set(map(int, input().split()))
    
    print(len(Eng.union(Frn)))