結果 : python code to write a list to a file