You are viewing a single comment's thread. Return to all comments →
could have done it without the loop, but too many brackets don't look good
M = input() M = set(map(int, input().split())) N = input() N = set(map(int, input().split())) S = sorted((M.difference(N)).union(N.difference(M))) for val in S: print(val)
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 →
could have done it without the loop, but too many brackets don't look good