How to print a list in Python "nicely"
<p>In PHP, I can do this:</p>

<pre><code>echo '&lt;pre&gt;'
print_r($array);
echo '&lt;/pre&gt;'
</code></pre>

<p>In Python, I currently just do this:</p>

<pre><code>print the_list
</code></pre>

<p>However, this will cause a big jumbo of data. Is there any way to print it nicely into a readable tree? (with indents)?</p>
