Python: how to output a string in tabular form
<p>I've got an array in a funcion...</p>

<pre><code>for i in data:
    dates.append(str(i['month'])+": "+str(i['the_days']))
</code></pre>

<p>that I'm pulling into the body of an email like this...</p>

<pre><code>date_list = avDates()
date_list_string = ' '.join(date_list)

html = """"&lt;html&gt;
&lt;head&gt;&lt;/head&gt;
&lt;body&gt;
&lt;p&gt; These are the dates: &lt;/p&gt;
""" + date_list_string + """
&lt;/body&gt;
&lt;html&gt;
"""
</code></pre>

<p>and this is returning the data as a string within the email...</p>

<pre><code>Apr: 16, 29 May: 13, 27 Jun: 10, 11, 24 etc
</code></pre>

<p>How can I change the code so that the string is shown in tabular for or with a line break after each <code>i</code> ?</p>

<pre><code>Apr: 16, 29 
May: 13, 27 
Jun: 10, 11, 24 
etc
</code></pre>

<p>I've tried putting "/n" in various places but it just prints out rather than being executed.</p>