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: 9, ['X', '2625', 'l', '533', 'j', '265', 'O', 'h', '9031', '9507', '1981', '4301', 'h', 'Z', '3735', 'a', '9359', 's']

A: X, 2625, l, 533, j, 265, O, h, 9031
****
Q: 9, ['2975', '9501', '5493', 'T', '3115', 'p', 'V', 'B', 'A', 'a', 'I', '943', 'd', '3095', 'Y', 'y', '99', 'z', '9949', 'c', '3851']

A: 2975, 9501, 5493, T, 3115, p, V, B, A, a, I, 943
****
Q: 3, ['w', 'O', 'o', 'p', '3253', '7183', '8755', 'T', 'g', '1625', '4255', '8597', 'R', 'U', 'Q', '2637', 'q', 'Z', 'f', 'O', 'r']

A:
w, O, o, p, 3253, 7183, 8755, T, g, 1625, 4255, 8597, R, U, Q, 2637, q, Z
****