from functools import reduce
import operator


def product(values):
    """Return the product of multiplying all the values.

    >>> product([3, 4, 5, 10])
    600
    >>> product([])
    1

    """
    return reduce(operator.mul, values, 1)