The for loops

A for loop is a control structure that allows us to iterate over a collection (such as a list, a dictionary, or even a string). The for loops are especially useful when we want to apply the same type of logic to a subset of fields.

Iterating through a list

Jinja allows us to iterate using a for statement.

Get hands-on with 1400+ tech skills courses.