You are viewing a single comment's thread. Return to all comments →
The solution is :
M = int(input()) a = set(map(int,input().split())) N = int(input()) b = set(map(int,input().split()))
diff = a.difference(b).union(b.difference(a)) for i in sorted(diff): print(i)
Seems like cookies are disabled on this browser, please enable them to open this website
Symmetric Difference
You are viewing a single comment's thread. Return to all comments →
The solution is :
M = int(input()) a = set(map(int,input().split())) N = int(input()) b = set(map(int,input().split()))
diff = a.difference(b).union(b.difference(a)) for i in sorted(diff): print(i)