fill_template(template, values) that takes a string template containing {}-style placeholders (using str.format syntax, e.g. "Order {order_id} shipped to {city}") and a dict values mapping placeholder names to their values, then returns the fully substituted string.fill_template("Order {order_id} shipped to {city}", {"order_id": 501, "city": "Pune"})'Order 501 shipped to Pune'
Both placeholders substituted from the dict.
`template.format(**values)` expands the dict as keyword arguments.