Complete the code to display a variable in a Flask template using Jinja2 syntax.
<p>Hello, {{ [1] }}!</p>In Flask templates, variables are shown using double curly braces with the variable name inside, like {{ name }}.
Complete the code to substitute a variable called 'user' in the template.
<h1>Welcome, {{ [1] }}!</h1>The variable user is used inside the double curly braces to show its value in the template.
Fix the error in the template variable substitution syntax.
<p>Your score is {{ [1] }}</p>Variables in Jinja2 templates should be referenced by name only, without parentheses or punctuation.
Fill both blanks to correctly display a user's first and last name using variable substitution.
<p>Full name: {{ [1] }} {{ [2] }}</p>Use first_name and last_name variables inside {{ }} to show the full name.
Fill all three blanks to create a dictionary in a Jinja2 template showing item names and their prices if price is greater than 10.
{% set expensive_items = { [1]: [2] for [3] in items if [2] > 10 } %}Use item.name as key, item.price as value, and loop over item in items.