String Template Substitution
Given a dictionary (string keys and string values) and a template string text. Variables in the template are wrapped in a pair of %, e.g. %A%. Replace every %key% in text with the value of `...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
