Access variable in template

Report a typo

Let's assume that you pass such context to a template:

blog_name = 'All about Django'

Access blog_name as a variable and add it to the content of the h2 element.

Write a program in Python 3
template = """
<html>
<h2> </h2>
</html>
"""
___

Create a free account to access the full topic