def indented(string_to_indent, indent):
    """Return the indented version of a string. 'indent' is the number of spaces
    to add before each line.

    """
    indent_str = " " * indent
    string_as_list = string_to_indent.split("\n")
    result = indent_str + ("\n" + indent_str).join(string_as_list)
    return result