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]: 12, ['7445', '9181', '2601', 'T', '4815', 'S', 'Z', '9753', '9883', '375', '2303', 'd', 'r', 'j', 'k', 'v', '4011', 'k', 'd', '8993', 'W', 'e', 'f', 'S', 'F', '4363', '4873', 'A']
[A]: 7445, 9181, 2601, T, 4815, S, Z, 9753, 9883, 375, 2303, d, r, j, k, v


[Q]: 3, ['o', 'l', '4141', '4805', '1971', '751']
[A]: o, l, 4141


[Q]: 1, ['q', 'S']
[A]:
q