Like others pointed out already, there are two ways to do string formatting in Python at the moment.
Python 3.6 will introduce a third option. Details can be found here:
PEP 0498 -- Literal String Interpolation
>>> name = 'Fred'
>>> f'He said his name is {name!r}.'
"He said his name is 'Fred'."