Let's say I have a list of lists, like so:
[
["A", "B"],
["C", "D", "E"]
]
I want to get all possible permutations, which in this case gives me 6 results.
Later, that list gets a new item appended to it:
[
["A", "B"],
["C", "D", "E"],
["F", "G"]
]
I want to use itertools.product to get that set of combos as well, automatically including the new list item.
(This would all be easier if itertools.product took a list of items to combine.)
Is this possible?