def indent(text, amount=4):
    """Indent each lines of the given string.

    Args:
        text (str): Text to indent
        amount (int): Number or character padding

    Returns:
        str: Indented text.

    """
    return "".join(amount * " " + line for line in text.splitlines(True))