Loop in template

There is a list, it is {{info}}

I will print the elements of this list in order.

{% for element in info %}

{{element}}

{% end %}
{% for index,element in enumerate(info) %}

info[{{index}}] is {{element}} {% if element == "python" %}

I love this language--{{element}}

{% end %} {% end %} {% if "[email protected]" in info %}

A Ha, this the python lesson of LaoQi, It is good! His email is {{info[2]}}

{% end %}

Next, I set "python-tornado"(a string) to a variable(var)

{% set var="python-tornado" %}

Would you like {{var}}?