結果 : define output function in python