title: How to get items from each inner list in order
body: <p>I'm currently working with Automate the boring stuff with Python and I'm dealing with project where I must display data from tableData in changed order and then justify each element to the right based on length of longest element in each list so it will display something like this:</p>
  
  <pre><code>jabłka Alicja psy
  
  pomarańcze Bob koty
  </code></pre>
  
  <p>and so on..</p>
  
  <p>I know that I must get the first element of each nested list, then the second etc but I'm really struggling to to this and I'm hoping that you can help me with that.</p>
  
  <p>PS Don't worry about that strange letters in list items, it's my native language :)</p>
  
  <pre><code>  tableData = [
      ['jabłka', 'pomarańcze', 'wiśnie', 'banany'],
      ['Alicja', 'Bob', 'Karol', 'Dawid'],
      ['psy', 'koty', 'łosie', 'gęsi']
  ]
  
  def printTable():
      colWidth = [0] * len(tableData)
  
      for i in range(len(tableData)):
          for j in range(len(tableData[i])):
                  if colWidth[i] &lt; len(tableData[i][j]):
                      colWidth[i] = len(tableData[i][j])
  
  
  
  printTable()
  </code></pre>