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