title: How to make all lists in a list of lists the same length by adding to them
body: <p>I have a nested list which contains lists filled with strings.  What I am trying to do is make each list in this nest the same length as the longest available list in that nest.  This sounds easy, but my attempts have failed (I am completely new to programming) and I cannot find an answered question which is relative enough to solve my problem.</p>
  
  <p>First, I determine how long the longest list is:</p>
  
  <pre><code>maxSS7 = max(len(i) for i in ssValues7))
  </code></pre>
  
  <p>Then, I use a for loop to extend each list by a certain amount of 'null' if it is not the same length as the longest list:</p>
  
  <pre><code>for row in ssValues7:
      if row &lt; len(maxSS7):
          row.extend(['null' * (len(maxSS7) - len(row))])
  </code></pre>
  
  <p>I am extending the row by 'null' * the difference between the longest list and current list.  No errors occur, but unfortunately it appears to do nothing to my nested list.</p>
  
  <p>Could someone please enlighten me as to my error?  Any help would be greatly appreciated.</p>