Indent all the lines in s (separated by newlines) by n spaces.
(s: str, n: int)
| 701 | |
| 702 | |
| 703 | def indent(s: str, n: int) -> str: |
| 704 | """Indent all the lines in s (separated by newlines) by n spaces.""" |
| 705 | s = " " * n + s |
| 706 | s = s.replace("\n", "\n" + " " * n) |
| 707 | return s |
no test coverage detected
searching dependent graphs…