def check_length_list(input_file, file_list):
    """Check that the length of an input file is the same as the list from reading it in. Puts the file type in the printed output for clarity."""

    count_file_length = len(open(input_file).readlines())
    count_file_list = len(file_list)

    if count_file_length != count_file_list:
        print(input_file, "file length: ", count_file_length)
        print(input_file, "file list: ", count_file_list)
    else: 
        print(input_file, " file length is the same as the list of files: all of the files have been read in. Number of files: ", count_file_list)

    return count_file_list