Symmetric Difference

  • + 0 comments

    def sym_diff(): s1=input() a=input() a1=a.split(" ") set1={int(i) for i in a1} s2=input() b=input() a2=b.split(" ") set2={int(i) for i in a2} return sorted(set1-set2| set2 - set1) op=sym_diff() for i in op: print(i)