import itertools import numpy # below creates symmetrical arrays add_columns=[1] B=[200] #range(20,780,20)# /1.0 # 0.0 20.0 ... 620.0 #(start, stop, step) S=[60, 120, 180, 240, 320, 640] #range(20,780,20) #/1.0 # [50 50 ... 50 50] both=list(itertools.product(B,S)) print both # adding a columns array. This is actually the number of additional columns # in each case # add_columns = [1, 2, 4, 6] add_columns = [1] # just one additional column # create asymmetrical array where S