Question: Python- I'm supposed to find the square root of a number (n). I'm stuck on this problem. The instructions are: 1) Prompt the user for

Python- I'm supposed to find the square root of a number (n). I'm stuck on this problem. The instructions are: 1) Prompt the user for number n, which you will find square root. 2) Make initial guess of the square root (n/2 is first good guess). 3) Create a new float variable temp. 4) Set temp = n/guess. 5) Update guess to have the value guess = (guess+ temp) /2 . Repeat steps 4 and 5 five times each, then show the answer. I believe I have to create a for loop. Please show me the correct source code for this and explain thoroughly each step. Thanks.

Python- I'm supposed to find the square root of a number (n).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!