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: 8, ['H', '2329', 'K', 'q', '4749', '2395', '3297', '3515', 'r', 'K', 'a', 'S', 'Q', '3097', 'k', 'B', 'P', '869', 'x', 'u', 'h', 'I', 'e', 'j', '3709', '7675', '2473']

A: H, 2329, K, q, 4749, 2395, 3297, 3515, r, K, a, S, Q, 3097, k, B, P, 869, x
****
Q: 5, ['G', '1303', '4847', '8601', '1243', 'o', '4001', 'Z', '2907', 'b', 'M', 'F', '6585', 'Q', '2829', '4275', '4821', 'g', 'h', 'o', 'C', '1059', 'L', '9531', '3303']

A: G, 1303, 4847, 8601, 1243, o, 4001, Z, 2907, b, M, F, 6585, Q, 2829, 4275, 4821, g, h, o
****
Q: 4, ['9387', '6547', '4469', 'C', '1355', '4343', 'K', 'w', '5159', 'i', 'X', '2865', 'f', 'B', 'S', 'f', 'Z', 'o', 'U', 'H', 'G', '1571', 'M', 'O']

A:
9387, 6547, 4469, C, 1355, 4343, K, w, 5159, i, X, 2865, f, B, S, f, Z, o, U, H
****