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, ['1831', '8397', '415', 'j', 'B', 'a', 'w', 'i', '1191', 'z', 'T', '6749', 'p', '2957', 'X', '6813', 'u', '9359', '7259', '7483', 'W', 'v', '9933', 'e', '3369', '9953', '6501', 'Y', '6207']
[A]: 1831, 8397, 415, j, B, a, w, i, 1191, z, T, 6749, p, 2957, X, 6813, u, 9359, 7259, 7483, W, v, 9933, e, 3369, 9953, 6501


[Q]: 7, ['Y', '237', 'u', '6417', '8945', 'B', 'K', 's', '7275', 'o', '8239', 'Z', 'M', '2951', 'y', 'b', '3473', 'f', '6235', '1895']
[A]: Y, 237, u, 6417, 8945, B, K, s, 7275, o, 8239, Z, M


[Q]: 12, ['4249', '8027', '3621', 'W', '9535', '9079', 'd', 'm', 'u', '5727', '6109', '6781', '195', 'w', '5825', 'B', '5305', 'y', '2373', 'I', '6537', 'x', 'K', 'f', 'Q', 'g', 'e', 'u']
[A]:
4249, 8027, 3621, W, 9535, 9079, d, m, u, 5727, 6109, 6781, 195, w, 5825, B