Driver code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT N = 7 ; NEW_LINE nums = [ 3 , 4 , 7 , 1 , 2 , 5 , 6 ] ; NEW_LINE count = make_xor_half ( nums ) ; NEW_LINE if ( count == - 1 ) : NEW_LINE INDENT print ( " - 1" ) ; NEW_LINE DEDENT elif ( count == 1 ) : NEW_LINE INDENT print ( nums [ N ] ) ; NEW_LINE DEDENT else : NEW_LINE INDENT print ( nums [ N ] , nums [ N + 1 ] ) ; NEW_LINE DEDENT DEDENT