from typing import Iterable
from typing import Union
from functools import reduce
from operator import mul


def get_product_of_iterable(
    _iterable: Iterable[Union[float, int]]
) -> Union[float, int]:
    """Method to get the product of all the enteries in an iterable"""
    return reduce(mul, _iterable, 1)