Say I have a list of lists: beers
.
speights = [1, 10]
tui = [2, 7]
export = [3, 9]
beers = [speights, tui, export]
So I can only find how to get every possible combination of a list of lists which would be: (itertools.product(*beers))
but this gives me every combination including the ratings and the index of each beer aswell.
To make this more clear because I am struggling to explain this concept:
[[speights], [speights, tui], [speights, export], [speights, tui, export],
[tui], [tui, speights], [tui, export], [tui, speights, export]
..... etc.]
This is the desired output and it has to work on a list of lists of any length.
Any help would be greatly appreciated and sorry if it's been asked before because I can't seem to find this specific problem.