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
|
1246 Discussions
|
Please Login in order to post a comment
P = input() W = set(map(int, input().split())) U = input() S = set(map(int, input().split()))
for i in sorted(W^S): print(i)
could have done it without the loop, but too many brackets don't look good
For Python3 Platform