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