You are viewing a single comment's thread. Return to all comments →
eng_num = int(input()) eng_list = set(*[(int(i) for i in input().split())]) french_num = int(input()) french_list = set(*[(int(i) for i in input().split())]) unique_list = eng_list.symmetric_difference(french_list) answer = 0 for i in unique_list: answer += 1 print(answer)
Set .symmetric_difference() Operation
You are viewing a single comment's thread. Return to all comments →