I have a list of arrays and I would like to get the cartesian product of the elements in the arrays.
I will use an example to make this more concrete...
iter
you can do it in three rurch using itertools.product
lst=[] arrays = [(-1,+1), (-2,+2), (-3,+3)] import itertools for i in itertools.product(*arrays): lst.append(i) print(lst)