Work with Jinja lists
Introduction
Standard List
[ "apples", "oranges", "potatoes" ]More Complicated Example
"users": [
{
"username": "lskywalker",
"first_name": "Luke",
"last_name": "Skywalker",
"occupation": "Jedi"
},
{
"username": "hsolo",
"first_name": "Han",
"last_name": "Solo",
"occupation": "Smuggler"
}
]Working with Lists
Count of users
Getting the First Name of each user
Selecting items of a list based on their attributes
Creating new objects with list notation
Appending to a list
Other useful tactics
Comparing Lists
Stacked Lists
Last updated
Was this helpful?
