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