Secant Method Python Code