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
- Symmetric Difference
- Discussions
Symmetric Difference
Symmetric Difference
Sort by
recency
|
1242 Discussions
|
Please Login in order to post a comment
For Python3 Platform
This blog is very beneficial for me! Symmetric difference is especially useful when comparing datasets to find mismatches, differences, or "exclusive" elements. 11xPlay New ID
m = int(input()) m1 = set(map(int,input().split())) n = int(input()) n1 = set(map(int,input().split())) m1_n1 = sorted(m1.symmetric_difference(n1)) for i in m1_n1: print(i)