結果 : defining a function inside a function in python