結果 : how to write function code in python