def combine_lines(lines_list):
    """
    Combines a list of lines into one string with newlines.
    """

    # Store the result string.
    result_string = ""
    for line in lines_list:
        result_string += (line + "\n")

    # Leaves an additional newline at the end which is the same as in the original files.
    return result_string