Question 1
Consider the following Python code snippet.
from string import Template as makeTemplatefrom jinja2 import Templateimport sys
var = sys.argv[0]
data = {"var1": "Data scientist", "var2": "programming", "var3": "statistical", "var4": "insights"}
temp = "{{var1}} creates $var2 code with $var3 knowledge to create{{var4}}."
if var == "1": temp = makeTemplate(temp) output = temp.substitute(data) print(output)else: temp = Template(temp) output = temp.render(data) print(output)What will be printed on the terminal for the command python app.py 1 2 ?
