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]: 5, ['1455', 'C', '4659', 'A', '557', 'n', 'R', '4853', '9623', 'Y', '5985', '8355', 'q']
[A]: 1455, C, 4659, A, 557, n, R, 4853

[Q]: 5, ['H', 'j', '6089', '2777', '9627', 'D', 'J', 'r', 'v', 'U', '5257', 'D', '8975', 'i', 'q', 'W', '9301', '6431', 'V', 'e', '8161', '997', 'I', '87', '1751', '6205', 'f', 'Z', 'X']
[A]: H, j, 6089, 2777, 9627, D, J, r, v, U, 5257, D, 8975, i, q, W, 9301, 6431, V, e, 8161, 997, I, 87

[Q]: 2, ['O', '4839', 'D', 'y', '4845', 'i', 'l', '965', '5905', '9523', 'y', '4489', '7145', 'J', '4373', 'o', 'H', '4343', 'D', 'H', '8883', '6039', 't', '8743', 's', '5565', '6221', '5133', '8923', 'd']
[A]:
O, 4839, D, y, 4845, i, l, 965, 5905, 9523, y, 4489, 7145, J, 4373, o, H, 4343, D, H, 8883, 6039, t, 8743, s, 5565, 6221, 5133