In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.

[Q]: 1, ['A', '7761']
[A]: A


[Q]: 2, ['977', 'Z', 'R', '8793', '2449', '2051', 'o', 'm']
[A]: 977, Z, R, 8793, 2449, 2051


[Q]: 1, ['s', '5205', '9779', 'r', 'm']
[A]:
s, 5205, 9779, r