Check out example codes for "numpy break number in equal parts". It will help you in understanding the concepts better.

Code Example 1

def split_equal(value, parts):
    value = float(value)
    return [i*value/parts for i in range(1,parts+1)]

Learn ReactJs, React Native from akashmittal.com