You are viewing a single comment's thread. Return to all comments →
e = int(input()) count = 0 english_np = set(map(int,input().split())) f = int(input()) french_np = set(map(int,input().split())) diff = english_np.symmetric_difference(french_np) for num in diff: count += 1 print(count)
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 →
e = int(input()) count = 0 english_np = set(map(int,input().split())) f = int(input()) french_np = set(map(int,input().split())) diff = english_np.symmetric_difference(french_np) for num in diff: count += 1 print(count)