What is the type of parameter, and what does this function do?
<p>I am having trouble with the code below:</p>

<pre><code>def myprogram(x):
    if x == []:
        return x
    else:
        return myprogram(x[1:]) + [ x[0] ]
</code></pre>

<p>What is the parameter type <code>(x)</code>?
What does this function do?</p>

<p>I'm supposed to write code that calls this function with a parameter and find the return value, but i can't do that without understanding what is going on here. any help/feedback would be appreciated.</p>
