結果 : how to do functional programming in python