Transforming nested list in Python
<p>Assuming I have a structure like this:</p>

<pre><code>a = [
('A',
 ['D',
  'E',
  'F',
  'G']),
('B',
 ['H']),
('C',
 ['I'])
]
</code></pre>

<p>How can I transform it into:</p>

<pre><code>a = [
('A', 'D'),
('A', 'E'),
('A', 'F'),
('A', 'G'),
('B', 'H'),
('C', 'I'),
]
</code></pre>

<p>Thanks for your time!</p>
