結果 : reduce function example in python