You are viewing a single comment's thread. Return to all comments →
M = int(input()) m_store = set(map(int,input().split()))
N = int(input()) n_store = set(map(int,input().split()))
z = m_store.symmetric_difference(n_store)
store = sorted(z) for i in store: 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 →
M = int(input()) m_store = set(map(int,input().split()))
N = int(input()) n_store = set(map(int,input().split()))
z = m_store.symmetric_difference(n_store)
store = sorted(z) for i in store: print(i)