range in jinja2 inside a for loop

It's just like Python:

{% for n in range(n) %}
    {% for line in check[n][2:] %}
        <p> {{ beta[0][0] }} </p>
    {% endfor %}
{% endfor %}

You can use the "length" property:

{% for n in range(yourList| length) %}
       <p class="someclass">{{n + 1}}.</p>
       <a class="someclass2" 
       href="{{ url_for( 'yourFunction', Int = yourList[n].iterable)}}">
       {{yourList[n].iterable}}</a><br>
{% endfor %}

Length is similar to len(yourlist) that we have in python.