You are viewing a single comment's thread. Return to all 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))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .union() Operation
You are viewing a single comment's thread. Return to all 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))