title: Making a table in Python 3(beginner)
body: <p>So I just started learning Python 3 in school, and we had to make a function  that
  takes <strong><em>a</em></strong> as a parameter, chooses a reasonable value of x, and returns an estimate of the square root of <strong><em>a</em></strong>.</p>
  
  <p>We also had to make a function to test it. We had to write a function named test_square_root that prints a table, where The first column is a number, <strong><em>a</em></strong>; the second column is the square root of <strong><em>a</em></strong> computed with the first function;
  the third column is the square root computed by math.sqrt; the fourth column is the absolute value of the difference between the two estimates.</p>
  
  <p>I wrote the first function to find the square root, but I don't know how to make a table like that. I've read other questions on here about tables in Python3 but I still don't know how to apply them to my function.</p>
  
  <pre><code>def mysqrt(a):
      for x in range(1,int(1./2*a)):
          while True:
              y = (x + a/x) / 2
              if y == x:
                  break
              x = y
      print(x)
  print(mysqrt(16))
  </code></pre>