title: Multiplication table with lines (python 3.x)
body: <p>I want to create a multiplication table in the following format:</p>
  
  <pre><code>  | 1  2 ...  9
  ---------...----
  1 | 1  2 ...  9
  2 | 2  4 ... 18
  ...
  9 | 9 18 ... 81
  </code></pre>
  
  <ul>
  <li>Properly align numbers to the right</li>
  <li>vertical line after first column and horizontal line after first row.</li>
  </ul>
  
  <p>(the <code>...</code> are just here for brevity)</p>
  
  <p>So far I figured out the alignment:</p>
  
  <pre><code>for row in range(1,10):
      s = ''
      for col in range(1,10):
          s += '{:3} '.format(row * col)
      print(s, sep="\t")
  </code></pre>
  
  <p>But how do I add the lines, i.e. they shouldn't be iterated in the loop.</p>