Computer scienceBackendDjangoTemplates

Template filters

Math problem

Report a typo

Assume that you pass three variables a, b, c to your template.

Find their sum after the "=" sign. Remember that you can access these variables only in the code of the template.

Tip: You can use pipelines to apply a filter several times.

Write a program in Python 3
template = """
<html>
<div> a + b + c = {{ ... }} </div>
</html>
"""
___

Create a free account to access the full topic