how to use functools.reduce in Python

Pythonのfunctools.reduce