79451585

Date: 2025-02-19 13:59:41
Score: 0.5
Natty:
Report link

The accepted answer works, but this could also be a valid use case for python's builtin textwrap module:

>>> import textwrap
>>> text = """A
... B
... C"""
>>> print( textwrap.indent(text, "- ") )
- A
- B
- C

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: aboellinger