How to href the elements in a python list with Flask?
<p>How can I transform to different html hrefs the elements of a list?. For instance:</p>

<pre><code>A = [string1, string2, ..., stringN]
</code></pre>

<p>To:</p>

<p><code>A = [</code><a href="https://this_is_url_1/" rel="nofollow"><code>string1</code></a><code>,</code> <a href="https://this_is_url_2/" rel="nofollow"><code>string2</code></a><code>, ...,</code> <a href="https://this_is_url_N/" rel="nofollow"><code>stringN</code></a><code>]</code></p>

<p>Your question is not clear and ambiguous.</p>

<p>If string is hyperlink..</p>

<pre><code>A = [string1, string2, ..., stringN]
</code></pre>

<p><code>hrefs = ['&lt;a href="%s"&gt;%s&lt;/a&gt;' % (a,a) in A]</code></p>

python