Set .symmetric_difference() Operation

  • + 0 comments

    n= int(input()) n_set=set(input().split()) m=int(input()) m_set=set(input().split())

    z = n_set.symmetric_difference(m_set) print(len(z))