Option 1, old style formatting.
>>> name = 'Jake'
>>> print('hello %s, have a great time!' % name)
hello Jake, have a great time!
Option 2, using str.format
.
>>> print('hello {}, have a great time!'.format(name))
hello Jake, have a great time!
Option 3, string concatenation.
>>> print('hello ' + name + ', have a great time!')
hello Jake, have a great time!
Option 4, format strings (as of Python 3.6).
>>> print(f'hello {name}, have a great time!')
hello Jake, have a great time!
Option 2 and 4 are the preferred ones. For a good overview of Python string formatting, check out pyformat.info.