We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Sets
- Set .union() Operation
- Discussions
Set .union() Operation
Set .union() Operation
Sort by
recency
|
799 Discussions
|
Please Login in order to post a comment
For Python3 Platform
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))