I have a large set of data which I am importing into jupyter from my desktop using glob.glob(some_file_path.dat) into python. This outputs a single list containing each of the data file paths as strings (1851 in total). What I wish to do is split this massive list into 10 text files (so 9 files would contain 185 strings and 1 would contain 186 as there are 1851 in total). I am at a bit of a loss how to go about doing this so they split based 'evenly' by specifying 10 text files (each named differently) as the number to split between.
Any help would be greatly appreciated.