def make_polynomial(coef):
    """
    Return Python function from polynomial coefficients.
    Args:
        coef (np.array): List of coefficients.

    Returns:
        func: Function representing polynomial.
    """
    return lambda x: sum(a*x**i for i, a in enumerate(coef))