from functools import reduce
from operator import mul


def prod(seq=[]):
    """[x1, x2, x3, ..., xn] -> x1 * x2 * x3 * ... * xn
    >>> prod([1,2,3,4,5])
    120
    >>> prod()
    1
    """
    return reduce(mul, seq, 1)