結果 : how to write user defined function in python