I\'m basically looking for a python version of Combination of List>
Given a list of lists, I need a new list that gives all the possible combin
Numpy can do it:
>>> import numpy >>> a = [[1,2,3],[4,5,6],[7,8,9,10]] >>> [list(x) for x in numpy.array(numpy.meshgrid(*a)).T.reshape(-1,len(a))] [[ 1, 4, 7], [1, 5, 7], [1, 6, 7], ....]