You are viewing a single comment's thread. Return to all comments →
n=int(input()) n_student=set(map(int, input().split())) b=int(input()) b_student=set(map(int, input().split()))
num = n_student ^ b_student print(len(num))
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_student=set(map(int, input().split())) b=int(input()) b_student=set(map(int, input().split()))
num = n_student ^ b_student print(len(num))