Skip to content
Advertisement

Tag: cartesian-product

All combinations of a list of lists [duplicate]

This question already has answers here: How to get the cartesian product of multiple lists (17 answers) Closed 8 months ago. I’m basically looking for a python version of Combination of List<List<int>> Given a list of lists, I need a new list that gives all the possible combinations of items between the lists. The number of lists is unknown, so

Advertisement