Q13Single correct3 Marks22 Dec 2024
Consider the following snippet of code. If lst is a non-empty list of positive integers, which of the following statements is correct about the recursive function do_something(lst)?
```
def do_something(lst):
if lst == []:
return 0
if lst[0] % 2 != 0:
return 1 + do_something(lst[1:])
else:
return do_something(lst[1:])
```