The accepted answer works, but this could also be a valid use case for python's builtin textwrap module:
textwrap
>>> import textwrap >>> text = """A ... B ... C""" >>> print( textwrap.indent(text, "- ") ) - A - B - C