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
|
1226 Discussions
|
Please Login in order to post a comment
M = int(input()) a = set(map(int,input().split())) N = int(input()) b = set(map(int,input().split()))
sym = a.symmetric_difference(b) results = sorted(sym) for result in results: print(result)