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
|
331 Discussions
|
Please Login in order to post a comment
n , m , o , p = int(input()), set(input().split()), int(input()), set(input().split())
sd = m ^ p
print(len(sd))
hope find simple
For Python3 Platform
n=int(input()) eng=set(map(int,input().split())) m=int(input()) french=set(map(int,input().split())) oeof=eng.symmetric_difference(french) not_common=list(oeof) print(len(not_common))