Q35Numerical3 Marks11 Dec 2022
Consider the function dosomething(L) given below.
```
def dosomething(L):
if len(L) <= 1:
return 0
else:
return (L[0] - L[-1] + dosomething(L[1:-1]))
S = dosomething(L)
print(S)
```
What will be the value of S at the end of execution when L = [3, 2, 1, 0, 1, 2, 3]?
Press Enter to check.