thiago_matos
New Contributor II

Import reduce function in this way:

from functools import reduce