How can I extract these list and tuples into strings?
<p>I have these lists and tuples and can't figure out how to extract the numbers out of them.</p>

<pre><code>[('40', '50')] [('35', '45', '49')] [('02', '11')]
</code></pre>

<p>They are stored in three different variables, how can I extract them? I've tried the following:</p>

<pre><code>chain.from_iterable(list_one)
</code></pre>

<p>but it gives me this:</p>

<pre><code>&lt;itertools.chain object at 0x1101415f8&gt;
</code></pre>

<p>Expected output for <code>[('40', '50')]</code> is <code>40 50</code></p>

<p>Expected output for <code>[('35', '45', '49')]</code> is <code>35 45 49</code></p>

<p>Expected output for <code>[('02', '11')]</code> is <code>02 11</code></p>

<p>To get each seperately as string:</p>

<pre><code> output = ""
    a = [('02', '11')]
    for i in a:
        for x in i:
            output = output + " " + x
</code></pre>

python python-3.x