You are viewing a single comment's thread. Return to all comments →
n= int(input()) n_set=set(input().split()) m=int(input()) m_set=set(input().split())
z = n_set.symmetric_difference(m_set) print(len(z))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .symmetric_difference() Operation
You are viewing a single comment's thread. Return to all comments →
n= int(input()) n_set=set(input().split()) m=int(input()) m_set=set(input().split())
z = n_set.symmetric_difference(m_set) print(len(z))