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