If I have list of lists
A = [a, b, ..., d]
in Python, then how can I apply itertools.product
to it?
I know that I can crossproduct over explicit lists
import itertools
for combination in itertools.product(a, b, ..., d):
...
but how to deal with dynamic list of lists like A
?