結果 : defining a function in a function python