結果 : write a function in python named swap half list array