<p dir="ltr"><br>
On Mar 31, 2014 6:22 PM, "Scott W Dunning" <<a href="mailto:scott.w.d@cox.net">scott.w.d@cox.net</a>> wrote:<br>
><br>
> I’m working on a few exercises and I’m a little stuck on this one.<br>
><br>
> This is what the book has but it just gives me an endless loop.<br>
><br>
> def square_root(a, eps=1e-6):<br>
>         while True:<br>
>                 print x<br>
>                 y = (x + a/x) / 2<br>
>                 if abs(y-x) < epsilon:<br>
>                         break<br>
><br>
> round(square_root(9))</p>
<p dir="ltr">Hi Scott,</p>
<p dir="ltr">Ah.  I think I see what might be wrong, but let's make sure about this.</p>
<p dir="ltr">Can you explain what 'x', 'y' are in this function?</p>