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.

[EX Q]: 8, ['G', '5365', 'g', 'D', '979', '2379', 'H', 'N', '4891', 'F', '9849', 'L', 'w', 'I', '1991', '6423', 'g', '4621', 'Z', 'a', '7349', 'z', '8711', '9559']
[EX A]: G, 5365, g, D, 979, 2379, H, N, 4891, F, 9849, L, w, I, 1991, 6423

[EX Q]: 1, ['6621', 'R', 'w', '501', 'H', 'a', 'P', '203', '1433', 'z', 'R', 'G', 'U', 'V', 'F', 'B', 'O', 'H', '1915', 'P']
[EX A]: 6621, R, w, 501, H, a, P, 203, 1433, z, R, G, U, V, F, B, O, H, 1915

[EX Q]: 10, ['Q', '7219', '5493', 'E', 'X', '295', 'Z', 'J', '8565', 'h', 'k', '7463', '9347', '9805', '9379', 'h', 'O', 'W', 'U', '4179', 'N', '9095', '5147', '3523', '2523', 'C']
[EX A]:
Q, 7219, 5493, E, X, 295, Z, J, 8565, h, k, 7463, 9347, 9805, 9379, h