def derivate(x, function):
h = 1e-8
return (function(x+h) - function(x)) / h
print(derivate(3, lambda x: x**2 + 2*x + 13))