def constant(x, const):
    """Return a constant value.

    Parameters
    ----------
    x : float or iterable of floats
        The x-value to calculate the value of the function at.
    const : float
        A constant value to be returned.

    """

    return const