<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def indent(text, amount, ch=' '):
 """Indents a string by the given amount of characters."""

    padding = amount * ch
    return ''.join(padding+line for line in text.splitlines(True))