Finish this in PY

Finish this in PY

I have part of code of this question plz help me to finish the rest.
x=2
for i in range(100):
xnew = x – (x**2 – 2)/(2*x)
if abs(xnew – x) < 0.001: break
x = xnew
print(“the poot is %.100f at %d iterations.” % (xnew, i))

1.png
2.png

admin

Author Since: November 30, 2020