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]: 6, ['4101', '3515', '7531', '5413', 'o', 'M', '577', '265', '6957', '1919', 'R', 'u', 'I', '7995', '4437', '5393', 'D', '3235', '7859', 'N', '5469', 'E', '2199', '9647', '8557', '8371', 'g', '411']
[A]: 4101, 3515, 7531, 5413, o, M, 577, 265, 6957, 1919, R, u, I, 7995, 4437, 5393, D, 3235, 7859, N, 5469, E


[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]: 2, ['i', '7015', '1501', '5183', 'K', '3885', '5627', 'l', '8443', '443', '6221', '2053', '8599', 'y', '6081']
[A]:
i, 7015, 1501, 5183, K, 3885, 5627, l, 8443, 443, 6221, 2053, 8599