Unpack positional arguments from data structure in Python
<p>given:</p>

<pre><code>def psum(a,b,c):
    return a**b+c
</code></pre>

<p>and <code>x = [1,2]</code> and <code>y = 3</code>
how can I do <code>psum(*x,3)</code> --> an equivalent.</p>

<p>I do not want to do <code>x[0], x[1]</code> because a function returns <code>x</code> and calling it twice would be inefficient. Could one do <code>z = function(a)</code>. where <code>z = x</code>. and then do <code>z[0]</code>, <code>z[1]</code>.</p>

<p>But I'm wondering if one can do this otherwise and use positional arguments in such a way.</p>

<p>Also, <em>without</em> using a wrapper.</p>

<p>Edit: One cannot use names because I didn't implement the function and the function writers did not use named arguments :/</p>
