July 2017
Intermediate to advanced
266 pages
6h 36m
English
List iterators in programming solutions offer the ability to take a list of items and perform a sequence of operations on them. For example, we might have a list of fruit, [apples, oranges, grapes, pears], and want to iterate over this list. In traditional programming languages, we could use a foreach loop. The basic flow of a foreach loop might look something like the following:

This example simply iterates through each item in the list and executes a code block based on the new list item presented. This type of implementation of looping is very basic within most programming languages, and Jinja is no exception. Based on this ...
Read now
Unlock full access