You are viewing a single comment's thread. Return to all comments →
s=input() k=list(map(int,input().split())) o=set(k) g=input() a=list(map(int,input().split())) j=set(a) q=j^o print(len(q))
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 →
this code will work
s=input() k=list(map(int,input().split())) o=set(k) g=input() a=list(map(int,input().split())) j=set(a) q=j^o print(len(q))