def zero_k(f,a,b,epsilon,k): def fk(x): return f(x)-k return zero(fk,a,b,epsilon)