title: How to line up columns when printing from 2d array in Python?
body: <p>I want to display a simple 2D array in a tabular format with headings at the top, so that the values line up under the headings. Is there a way to do this? I have looked at pprint and printing using numpy but cannot get it to work. Here is what I have at the moment:</p>
  
  <pre><code>myArray = [['Student Name','Marks','Level'],['Johnny',68,4],['Jennifer',59,3],['William',34,2]]
  
  for row in myArray:
      print(" ")
      for each in row:
          print(each,end = ' ')
  </code></pre>
  
  <p>Any suggestions?</p>