Todo list with numbers

Report a typo

Let's assume that you pass such a context to a template:

todos = ['take a nap', 'get a coffee', 'learn a topic on the Hyperskill']

Use a for loop statement to show all tasks with their index number (starting from 1) before them.

Write a program in Python 3
template = """
<html>
<ul>
{% %}
<li>{{ }} {{ }} </li>
{% %}
</ul>
</html>
"""

Create a free account to access the full topic