Posts

Showing posts with the label gyaanicoder

Challenge - #56 - Symmetric Difference

  # Enter your code here. Read input from STDIN. Print output to STDOUT M =  int ( input ()) setM =  set ( map ( int ,  input ().split())) N =  int ( input ()) setN =  set ( map ( int ,  input ().split())) result = setM.symmetric_difference(setN) print (* sorted (result),sep= "\n" )