Complete the code to apply the 'upper' filter in a Flask template.
{{ '{{ name[1]' }} }}The upper filter converts text to uppercase in Flask templates.
Complete the code to format a number with two decimal places using the 'format' filter.
{{ '{{ price[1]' }} }}The format('%.2f') filter formats a number to two decimal places in Flask templates.
Fix the error in the code to safely display HTML content using the 'safe' filter.
{{ '{{ content[1]' }} }}escape which does the opposite by escaping HTML.The safe filter tells Flask not to escape HTML tags, so the content renders as HTML.
Fill both blanks to create a dictionary comprehension in a Flask template that filters items with value greater than 10.
{% raw %}{% set filtered = {key: value for key, value in items.items() if value [1] 10} %}{% endraw %}< or == which filter different values.The operator > filters items where the value is greater than 10.
Fill all three blanks to create a Flask template expression that converts a string to lowercase, then replaces spaces with dashes, and finally trims whitespace.
{{ '{{ text[1][2][3]' }} }}upper instead of lower.This chain of filters first makes the text lowercase, then replaces spaces with dashes, and finally removes whitespace from the ends.