Flatten an iterable of iterables
<p>How can I write a function which returns every value nested in any iterable?</p>

<p>Here's an example of what I'm trying to accomplish:</p>

<pre><code>for i in function([1, 2, [3, 4, (5, 6, 7), 8, 9], 10]):
    print(i, end=' ')
</code></pre>

<p>Would print:</p>

<pre><code>1 2 3 4 5 6 7 8 9 10
</code></pre>
