結果 : how to reduce an array in python