Fill a Template with %KEY% Placeholders

Asked at Google · Coding Questions · Difficulty: Easy · Last asked Nov 7, 2026

Fill in a text template: every placeholder written as a key between two percent signs is replaced by the value stored for that key in a dictionary.

Loading the problem…