結果 : how to write a user defined function in python