結果 : write lines function in python