 <p>Just in case your list contains other types than strings:</p> <pre><code>a=[10,11,12] preamb='My Pre\n' postam='My Pos' Text=preamb for i in a: Text += str(i)+'\n' Text+=postam print Text </code></pre> <p>Result:</p> <pre><code>My Pre 10 11 12 My Pos </code></pre>