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]: 11, ['T', '3167', 'D', 'j', '7651', '5893', 'J', '2481', '371', '4257', 'h', '1251', '2973', '2031', '4373', '1271', '6829', 'O', '365', '8495', 'N', '7067', 'n', '4805', 'A', '547', '521', 'g', '2299']
[A]: T, 3167, D, j, 7651, 5893, J, 2481, 371, 4257, h, 1251, 2973, 2031, 4373, 1271, 6829, O


[Q]: 7, ['7083', 'W', 'U', 'W', '9063', 'K', '483', '8061', '9959', '8881', 'F', 'Q', 'I', '1765', 'o', '8883', 'b', '7093', 'Z', 'n']
[A]: 7083, W, U, W, 9063, K, 483, 8061, 9959, 8881, F, Q, I


[Q]: 7, ['S', 'W', '8205', '5065', '7121', 'g', '3045', 'A', '239', '6759', 'G', 'e', '8499', 'h', 'W', 'x', '3699']
[A]:
S, W, 8205, 5065, 7121, g, 3045, A, 239, 6759