title: Print a new line in between a list in python
body: <p>I have a list of potentially unknown length like so:</p>
  
  <pre><code>list = [[1,2], [3,4,5], [6]]
  </code></pre>
  
  <p>I have a for loop that prints these items out, but I also want to be able to add an extra new line in between.</p>
  
  <pre><code>1
  2
  
  3
  4
  5
  
  6
  </code></pre>
  
  <p>I don't want an additional new line after the final item or before the first. I have a for loop that prints out spaces in between the items in the line. However, there are instances where 1 or more indices are empty. In that case, I don't want to add an extra new line. I've managed to figure out if the first or last index is empty and how to deal with that, but not a middle index. </p>
  
  <p>For example the above result should also be obtainable with this:</p>
  
  <pre><code>list = [[1, 2], [], [3, 4, 5], [6]]
  </code></pre>
  
  <p>I'm not sure what's the best way to determine this.</p>