title: Create a table from a list of tuples in Python 3
body: <p>I have homework where I have to take a list containing tuples and print out a table. For example, the list might look like this:</p>
  
  <pre><code>data = [('Item1', a1, b1, c1, d1, e1, f1),
          ('Item2', a2, b2, c2, d2, e2, f2),
          ('Item3', a3, b3, c3, d3, e3, f3)]
  </code></pre>
  
  <p>I would have to print out this:</p>
  
  <pre><code>            Item1   Item2   Item3
  DataA:      a1      a2      a3
  DataB:      b1      b2      b3
  DataC:      c1      c2      c3
  DataD:      d1      d2      d3
  DataE:      e1      e2      e3
  DataF:      f1      f2      f3
  </code></pre>
  
  <p>I have initialised a list:</p>
  
  <pre><code>data_headings = ['','DataA:','DataB','DataC:','DataD:','DataE':,'DataF:']
  </code></pre>
  
  <p>My teacher has also given us the option to use a function he created:</p>
  
  <pre><code>display_with_padding(str):
       print("{0: &lt;15}".format(s), end = '')
  </code></pre>
  
  <p>Some guidance with how to do this will be much appreciated. I've been playing with this for the past day and I still am unable to work it out.</p>