I am having trouble with the code below:
def myprogram(x):
    if x == []:
        return x
    else:
        return myprogram(x[1:]) + [ x[0] ]
What is the parameter type (x)?
What does this function do?
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.
 
     
     
     
    