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, ['1605', 'v', '1559', '9033', '6603', 'a', 'S', 'T', '7991', 'v', '2739', 'F', 'q', '1873', '2475', '3879', '4903', 'I', 'U', '2733', 'S', 'q', 'O', '1623']

A: 1605, v, 1559, 9033, 6603, a, S, T, 7991, v, 2739, F, q, 1873, 2475, 3879, 4903, I, U, 2733, S, q
****
Q: 5, ['u', 'b', 'v', 'v', 'g', 'Q', 'z', '5659', '6375', '37', '913', '1701', 'S', 'G', '2355', 'S', '5855', '4511', 'p', '3173', 'M', 'X', 'd', '5601', 'G', 'A', 'u']

A: u, b, v, v, g, Q, z, 5659, 6375, 37, 913, 1701, S, G, 2355, S, 5855, 4511, p, 3173, M, X
****
Q: 5, ['4403', 'z', 'w', 'x', '8887', 'V', 'R', 'z', 'G', '4689', '4073', '8305', '8099', '6673', 'C', '9305', 'G', 'N', '2395', '6729', '2523', '3105']

A:
4403, z, w, x, 8887, V, R, z, G, 4689, 4073, 8305, 8099, 6673, C, 9305, G
****