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]: 12, ['8683', '8853', 'r', '5697', 'P', '7487', 's', 'b', '5003', '6493', 'D', '1367', '4403', 'd', 'W', '5975', 'f', 'B', '8335', '899', 'x', 'G', '8921', 'd', '8455']
[A]: 8683, 8853, r, 5697, P, 7487, s, b, 5003, 6493, D, 1367, 4403


[Q]: 3, ['6559', 'R', '4925', 'c', '5437', 'I', '6551', '2853', 'j', '2775', '3157', 'X', '1467', '869', '2837', '1001', 'e', '7835', '9059']
[A]: 6559, R, 4925, c, 5437, I, 6551, 2853, j, 2775, 3157, X, 1467, 869, 2837, 1001


[Q]: 5, ['6515', '6043', 'k', '323', '7097', '847', 'W', '7611', 'A', '9487', 'Q', '2093', '7093', 'V', 'd', '8711', 'U']
[A]:
6515, 6043, k, 323, 7097, 847, W, 7611, A, 9487, Q, 2093