from functools import reduce


def scalar_prod(scalars_list):
    """
    This method returns the product of the list of scalars which it has as
    input.

    Parameters
    ----------
    scalars_list : list[int|float|complex] | tuple[int|float|complex]

    Returns
    -------
    complex|float|int

    """
    if len(scalars_list) == 1:
        return scalars_list[0]
    else:
        return reduce(lambda x, y: x*y, scalars_list)