title: Python Square function using newton's algorithm
body: <p>how to create a python function called mySqrt that will approximate the square root of a number, call it n, by using Newton’s algorithm. Here's what I tried so far:</p>
  
  <pre><code>def newguess(x):
      result = x/2
      return result
  
  def mySqrt(n):
      result = (1/2) * (oldguess + (n/oldguess))
      return result
  
  v = newguess(45)
  t = mySqrt(65)
  print(t)
  </code></pre>