Prompt templates use {{ name }} placeholders (spaces inside the braces are optional). Replace each
placeholder with str(values[name]). Placeholders whose name is missing from values are left
unchanged, and their names are reported.
Return [rendered_text, sorted_list_of_missing_names] (each missing name once).
Implement render. Input: template: str, values: dict. Returns: [str, list[str]].
def render(template: str, values: dict) -> list:
return [template, []]
Run executes the public tests. Submit grades against public and hidden tests.
Prompt templates use {{ name }} placeholders (spaces inside the braces are optional). Replace each
placeholder with str(values[name]). Placeholders whose name is missing from values are left
unchanged, and their names are reported.
Return [rendered_text, sorted_list_of_missing_names] (each missing name once).
Implement render. Input: template: str, values: dict. Returns: [str, list[str]].
def render(template: str, values: dict) -> list:
return [template, []]
Run executes the public tests. Submit grades against public and hidden tests.