Q21Single correct3 Marks28 Apr 2024
What is the output of the following snippet of code?
```
def some_fun(L):
if len(L) == 1:
return L
if L[0] in L[1:]:
return some_fun(L[1:])
return [L[0]] + some_fun(L[1:])
print(some_fun([1, 5, 4, 3, 2, 1, 3, 2, 4, 3, 5, 7]))
```