Set .union() Operation

  • + 0 comments

    english_newspaper = int(input()) english_space_separeted = set(map(int, input().split()))

    french_newspaper = int(input()) french_space_separeted = set(map(int, input().split()))

    union_sets = english_space_separeted.union(french_space_separeted)

    print(len(union_sets))