import functools
import operator


def product_of_list(iterable):
    """
    Returns the product of an iterable
    If the list is empty, returns 1
    """
    product_ = functools.reduce(operator.mul, iterable, 1)
    return product_