Symmetric Difference

  • + 0 comments

    For Python3 Platform

    m = int(input())
    M = set(map(int, input().split()))
    n = int(input())
    N = set(map(int, input().split()))
    
    print(*sorted(M.symmetric_difference(N)), sep="\n")