title: Format strings to make 'table' in Python 3
body: <p>Right now I'm using <code>print()</code>, calling the variables I want that are stored in a tuple and then formatting them using: <code>print(format(x,"&lt;10s")+ format(y,"&lt;40s")...)</code> but this gives me output that isn't aligned in a column form. How do I make it so that each row's element is aligned?</p>
  
  <p>So, my code is for storing student details. First, it takes a string and returns a tuple, with constituent parts like: (name,surname,student ID, year).<br>
  It reads these details from a long text file on student details, and then it parses them through a tuplelayout function (the bit which will format the tuple) and is meant to tabulate the results.<br>
  So, the argument for the tuplelayout function is a tuple, of the form:<br>
  <code>surname | name | reg number | course | year</code>  </p>