結果 : how to define a function inside a function in python