結果 : how to define function inside function in python