You are viewing a single comment's thread. Return to all comments →
n=int(input()) eng=set(map(int,input().split())) m=int(input()) french=set(map(int,input().split())) oeof=eng.symmetric_difference(french) not_common=list(oeof) print(len(not_common))
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()) eng=set(map(int,input().split())) m=int(input()) french=set(map(int,input().split())) oeof=eng.symmetric_difference(french) not_common=list(oeof) print(len(not_common))