python split list into n sublists of similar length code example
Example: python split range into n groups
import numpy
x = range(25)
l = numpy.array_split(numpy.array(x),6)
import numpy
x = range(25)
l = numpy.array_split(numpy.array(x),6)