def indent(line, num_spaces):
    """Adds num_spaces spaces before the line.

    Args:
        line (str): Content of the line.
        num_spaces (int): Number of spaces to add before the line.

    Returns:
        str: Indented line.
    """
    line_indented = (num_spaces * ' ') + line
    return line_indented