We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 125bf41 commit 142da44Copy full SHA for 142da44
Challenges/Sets/Symmetric Difference.py
@@ -0,0 +1,10 @@
1
+if __name__ == '__main__':
2
+ M = int(input())
3
+ Set_M = set(map(int, input().split()))
4
+ N = int(input())
5
+ Set_N = set(map(int, input().split()))
6
+ MN = Set_M.difference(Set_N)
7
+ NM = Set_N.difference(Set_M)
8
+ UNI = MN.union(NM)
9
+ for i in sorted(UNI):
10
+ print(i)
0 commit comments