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, ['5945', '3475', '7789', '5501', 'V', 'Y', '4109', '1799', '585', '2855', 's', '3577', 'E', '3845', 'B', 'H', 'L', 'D']

A: 5945, 3475, 7789, 5501, V, Y, 4109, 1799, 585, 2855, s, 3577, E
****
Q: 1, ['8069', 'Y', 'm', 'y', '4089', '5341', 'k', '7941', 'L', '4301', '8739', 'x', '8569', '7961', '8423', 'y', 'X']

A: 8069, Y, m, y, 4089, 5341, k, 7941, L, 4301, 8739, x, 8569, 7961, 8423, y
****
Q: 5, ['6067', 'q', '2553', '6035', '2099', 'E', 'y', '19', '3343', 'y']

A:
6067, q, 2553, 6035, 2099
****