def constant(value):
    """
    Creates a function that returns a constant `value`.

    Examples:
        >>> pi = constant(3.14)
        >>> pi()
        3.14

    Args:
        value (object): Constant value to return.

    Returns:
        callable: Function that always returns `value`.
    """
    return lambda *args, **kwargs: value