Symmetric Difference

  • + 0 comments
    M = int(input())
    a = set(map(int, input().split()))
    N = int(input())
    b = set(map(int, input().split()))
    symmetricDifference = sorted(a ^ b)
    for x in symmetricDifference:
        print(x)