How to generate all combination from values in dict of lists in Python
<p>I would like to generate all combinations of values which are in lists indexed in a dict:</p>

<pre><code>{'A':['D','E'],'B':['F','G','H'],'C':['I','J']}
</code></pre>

<p>Each time, one item of each dict entry would be picked and combined to items from other keys, so I have:</p>

<pre><code>['D','F','I']
['D','F','J']
['D','G','I']
['D','G','J']
['D','H','I']
...
['E','H','J']
</code></pre>

<p>I know there is a something to generate combinations of items in list in <code>itertools</code> but I don't think I can use it here since I have different "pools" of values.</p>

<p>Is there any existing solution to do this, or how should I proceed to do it myself, I am quite stuck with this nested structure.</p>