If I have 3 list [0, 1, 2], [3, 4, 5], [6, 7, 8], how would I obtain an output of a list of lists that are of length three and contain one element from each list and has all possible combinations?
For example, one of the possible combinations of the above is [1, 5, 6].
I tried using numpy.meshgrid, but that only gave me some possible combinations and not all.