We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Set .symmetric_difference() Operation
Set .symmetric_difference() Operation
Sort by
recency
|
324 Discussions
|
Please Login in order to post a comment
english = int(input()) int,input().split())) french = int(input()) subfrench = set(map(int,input().split())) a = subenglish.symmetric_difference(subfrench) print(len(a))
n=int(input()) s=set(input().split()) n1=int(input()) s1=set(input().split()) a=(len(s | s1)) b=(len(s & s1)) print(a-b)
n = int(input()) eng = set(map(int,input().split())) m= int(input()) fre = set(map(int,input().split()))
print(len(eng.symmetric_difference(fre)))