I\'m trying to sharpen my noob Python skills by trying a problem my son has in his college CS class. The goal is to create a function that uses recursion to process a list. The
def RecursiveProcess(ListIn2, target):
if target > -1:
ListIn2[target] = ListIn2[target] + ListIn2[target+1]
ListIn2 = RecursiveProcess(ListIn2, target-1)
return ListIn2 #Actually need to return in the general case
else:
return ListIn2