Q31Single correct3 Marks30 Apr 2023
Consider the following snippet of code:
```
def func(L):
if L == []:
return 0
if L[-1] % 2 == 1:
return L[-1] + func(L[:-1])
else:
return func(L[:-1])
```
If L is a non-empty list of positive integers, which of the following statements is correct about the recursive function func(L)?