Having the following list of lists ['boundari', 'special', ['forest', 'arb'], 'abod'], I would like to obtain the the following combination:
[['boundari', 'special', 'forest', 'abod'], ['boundari', 'special', 'arb', 'abod']]
The nearest solution applying the next product when removing the last item abod (which I need to keep):
print([list(p) for p in product([toks[:2]], *toks[2:])])
[[['boundari', 'special'], 'forest'], [['boundari', 'special'], 'arb']]
However, I have not obtained the correct combination:
[['boundari', 'special', 'forest', 'abod'], ['boundari', 'special', 'arb', 'abod']]