Use Jinja Variable to generate n elements
<p>I want to use Jinja variables to generate n options in a drop down.  Here is an example:</p>

<pre><code>    Session Select: &lt;br&gt;
    {{ sessions }}
    &lt;select style="color:black"&gt;
        {% for session in sessions %}
            &lt;li&gt;{{ session }}&lt;/li&gt;
        {% endfor %}
    &lt;/select&gt; &lt;br&gt;&lt;br&gt;
</code></pre>

<p>The value of sessions is:</p>

<p>['Session 1', 'Session 2', 'Session 3'] </p>

<p>Any thoughts?</p>

<pre><code>Session Select: &lt;br&gt;
&lt;select style="color:black"&gt;
    {% for session in sessions %}
        &lt;option value="{{ session }}"&gt;{{ session }}&lt;/option&gt;
    {% endfor %}
&lt;/select&gt; &lt;br&gt;&lt;br&gt;
</code></pre>

python flask jinja2