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: 1, ['2935', 'H', '5139', 'n', 'X', '5999', 'C', '5147', 'J', '293', 'c', 'u', '9859', 'H', 'W', '2171', 'w', '3431', '1515']

A: 2935, H, 5139, n, X, 5999, C, 5147, J, 293, c, u, 9859, H, W, 2171, w, 3431
****
Q: 3, ['M', '3663', '101', 'p', 'T', 'J', 'N', '7915', '5897', 'm', 'g', '3357', 'j', 'S', '7271', 'B', '4625', '7827', 'w', 'B', '8123', '6623']

A: M, 3663, 101, p, T, J, N, 7915, 5897, m, g, 3357, j, S, 7271, B, 4625, 7827, w
****
Q: 9, ['e', '1779', 'a', '695', 'L', '8141', 'g', 'V', '5907', '8903', '2437', 'b', '5463', 'J', 'E', '5201', 'B', '2759', 'Y', 'W', 'k', 'C', 'p', '5647', '2053', '5457', '5499']

A:
e, 1779, a, 695, L, 8141, g, V, 5907, 8903, 2437, b, 5463, J, E, 5201, B, 2759
****