• format
  • string

% can be used in string formatting.

>>> print('%s is the #%d word in the Python chatroom!' % ('Cabbage', 1))
Cabbage is the #1 word in the Python chatroom!

Note that it is now recommended to use the new str.format() syntax.