Generator comprehension which adds different numbers of the same item <p>Given:</p> <pre><code>foo = (a,b,c,d,e,f) multi = (b,d) </code></pre> <p>What generator comprehension gives the following tuple:</p> <pre><code>((a, None), (b, True), (b, False), (c, None), (d, True), (d, False), (e, None), (f, None)) </code></pre> <p>where items in <code>multi</code> appear twice with <code>True</code> and <code>False</code>, while other appear as <code>None</code>.</p>