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]: 2, ['4745', '1001', 'z', 'c', '143', 'd', '3291', 'r', '5543', '8577', '251']
[A]: 4745, 1001, z, c, 143, d, 3291, r, 5543


[Q]: 1, ['5811', 'n', '6307', 'f', 'Z', '5779', 'S', 'T', 'D', '261']
[A]: 5811, n, 6307, f, Z, 5779, S, T, D


[Q]: 6, ['651', 'j', '3361', 'h', '5183', 't', 'c', '9877', 'n', 'h', '6237', '5793', '8281', 'E', '5235', '9673', '8885', '4293', '4461', '3521', '6213', 'Z']
[A]:
651, j, 3361, h, 5183, t, c, 9877, n, h, 6237, 5793, 8281, E, 5235, 9673