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.
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.
Create a free account to access the full topic