title: Python 3 - Help formatting array/table output
body: <p>I'm working on a problem but I'm curious about how to better format my output. Basically, I'm working with an array, which in Python is basically a list within a list, or should I say nested lists. The question I'm working on is related to average rating of movies reviews, but lets just say that the first column is a "reviewer" numbered 1-3 or 1-5 (depending on the size of the array) and the movie reviews are the rows, again this is size dependent on the array itself, 3x3, 6x6, etc. So below I will include my code.</p>
  
  <pre><code>array = [[4,6,2,5], [7,9,4,8], [6,9,3,7]]
  
  def review(array):
      'function that outputs average review of movie scores'
  
      ncols = len(array[0])  #finds number of columns in array 
      total = 0
  
      for row in array:
          for el in row:
              total+= el
              avg = total/ncols
              print(end = ' ')
          print(' Reviewer average:', avg)
  </code></pre>
  
  <p>Now, this does work fine as far as calculations go, but what I need to do is have the 'Reviewer Average' number 1, 2, 3, or 1,2,3,4,5 based off the amount of columns in the array, or in other words it should output the column number based off the array size. So for example, a 3x3 array output like the original array in my code above should look like this:</p>
  
  <pre><code>Reviewer 1 average: 4.25
  Reviewer 2 average: 11.25
  Reviewer 3 average: 17.5
  </code></pre>
  
  <p>However, as I've stated my issue is, I can't seem to figure out how to number it to work with ANY table/array size, I want it to work regardless if it was 6x6 or 3x3, etc. </p>
  
  <p>My current output looks like:</p>
  
  <pre><code>Reviewer average: 4.25
  Reviewer average: 11.25
  Reviewer average: 17.5
  </code></pre>