from typing import Iterable
from functools import reduce
import operator


def prod(iterable: Iterable) -> float:
    """Returns the product of the elements of an iterable."""
    return reduce(operator.mul, iterable, 1)