Appending list data to txt
<p>My goal is to append all the values in  list "lis" to "txt",am pasting a snippet below,I always see only the last element being appended to "txt",how can i fix it?I tried to use txt += but that wont work either because I want the list data "lis" to be in-between "txt[0:tagEnd] " and "wikiText + txt[endTag:len(txt)]"</p>

<pre><code>for i in range(len(lis)) :
    txt = txt[0:tagEnd] + lis[i] + wikiText + txt[endTag:len(txt)]
</code></pre>
