Python - print a list adding empty lines at determined points
<p>I have a list that contains logs, and I am trying to add an empty line between specific blocks. So when I get to the end of a specific block, I can see a bit of separation, instead of looking like a continuous list.</p>

<pre><code>EX:
log a:
kdsaldklsadkaslk
kasldkasldkasldkasldk

log a1:
lkpadkfaldkfdsl
klsdkfldskfsdl
</code></pre>

<p>So far I've tried all that I was able to find online, but I was unsuccessful. Either I am forced to add anything but an empty line (like a sequence of ----- for example), or the space added will be added to every single line (which is not what I want).</p>

<p>If I add in the list the empty line, like </p>

<pre><code>log_list.append(" \n")
</code></pre>

<p>when I print the list using </p>

<pre><code>print "\n".join(log_list)
</code></pre>

<p>all the empty lines that I have added are not printed.</p>

<p>But if I add any character to the append command, then it will be printed.</p>

<p>Is there any option that is automatically taking off the empty lines in a list, when I do the join command? Otherwise I do not understand why I cannot have an empty line in the list.</p>

<p>Is there another way to print out lists? I've always seen printing lists with the join command (all my objects in the list are strings).</p>

<p>Thanks!</p>
