Set .symmetric_difference() Operation

  • + 0 comments
    n, set_n = int(input()), set(map(int, input().split()))
    b, set_b = int(input()), set(map(int, input().split()))
    
    n_or_b = set_n.symmetric_difference(set_b)
    print(len(n_or_b))