結果 : define nested function in python