I have a list looks like below
[['a'], ['b'], [[1], [2], [3]], ['d']]
and I need to get
[['a'], ['b'], [1], ['d']]
, [['a'], ['b'], [2], ['d']]
, [['a'], ['b'], [3], ['d']]
I saw few posts and found itertools.product, but I think this needs multiple lists in same dimension as argument.
Is there any way to get the result?