I've got an array in a funcion...
for i in data:
dates.append(str(i['month'])+": "+str(i['the_days']))
that I'm pulling into the body of an email like this...
date_list = avDates()
date_list_string = ' '.join(date_list)
html = """"<html>
<head></head>
<body>
<p> These are the dates: </p>
""" + date_list_string + """
</body>
<html>
"""
and this is returning the data as a string within the email...
Apr: 16, 29 May: 13, 27 Jun: 10, 11, 24 etc
How can I change the code so that the string is shown in tabular for or with a line break after each i ?
Apr: 16, 29
May: 13, 27
Jun: 10, 11, 24
etc
I've tried putting "/n" in various places but it just prints out rather than being executed.