Question 8
Consider the following Python file “output.py”
File: “output.py”
from jinja2 import Templateoutput = """<!DOCTYPE html><body> <ul> <!--Missing Jinja2 implementation--> </ul></body></html>"""l = [5, 4, 3, 2, 1]t = Template(output)output = t.render(sl=l)print(output)Which of the following code snippet when placed at <!--Missing Jinja2 implementation–> will render the below unordered list as shown below?
- 1
- 2
- 3
- 4
- 5