Q10Numerical3 Marks22 Dec 2024
Consider the following snippet of code: What will be the value of S[-1] at the end of execution of the above code? Enter an integer as your answer.
```
L = [1, 2, 3, 4, 5]
S = []
i = 0
while i < len(L):
S = [L[i]] + L[i:]
i += 1
```
Press Enter to check.