►
Run
x = 'Hello {name}! Welcome to {country}. ' result = x.format_map({'name': 'XYZ', 'country': 'New World'}) print(result)
Output