結果 : define a function inside a function python