I have a loop to show a list content in a flask template but I don't want to show the first character of the element , in this way works in python but not in flask
{%for file in files%}
        {% f= file['path'] %}
        <p> {{ f[1:] }}</p>
{% endfor %}
I get this error
TemplateSyntaxError: Encountered unknown tag 'f'. Jinja was looking for the following tags: 'endfor' or 'else'. The innermost block that needs to be closed is 'for'.
 
     
     
    