To split a large list into smaller lists or sub lists, you can use the following code snippet.
This can be easily performed by numpy.
import numpy num_splits = 3 large_list = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26] splitted_list = numpy.array_split(large_list,num_splits); for split in splitted_list: print(list(split))