How to return an unpacked list in Python?
<p>I'm trying to do something like this in python:</p>

<pre><code>def f():
    b = ['c', 8]
    return 1, 2, b*, 3
</code></pre>

<p>Where I want <code>f</code> to return the tuple <code>(1, 2, 'c', 8, 3)</code>. I found a way to do this using <code>itertools</code> followed by <code>tuple</code>, but this is not very nice, and I was wondering whether there exists an elegant way to do this.</p>