def indent ( text : str , num : int = 2 ) -> str : lines = text . splitlines ( ) return "\n" . join ( indent_iterable ( lines , num = num ) )
how to indent a line of text in python
Indent a piece of text .
def indent(text: str, num: int = 2) -> str:
    """Indent a piece of text."""
    lines = text.splitlines()
    return "\n".join(indent_iterable(lines, num=num))