You are viewing a single comment's thread. Return to all comments →
if name == 'main': n = int(input()) n = set(list(map(int , input().split())))
b = int(input()) b = set(list(map(int , input().split()))) total = n.symmetric_difference(b) list_total = list(total) count = len(list_total) 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 →
Enter your code here. Read input from STDIN. Print output to STDOUT
if name == 'main': n = int(input()) n = set(list(map(int , input().split())))