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, ['2183', '8329', '9027', 'V', '8953', 'y', 'P', 'a', '1215', '9759', '5021', 'L', 'c', '6181', '4637', 'i', '2985', 'S', '3107', '8439', '6093', 'Y', 'B', '895']

A: 2183, 8329, 9027, V, 8953, y, P, a, 1215, 9759, 5021, L, c, 6181, 4637, i, 2985, S, 3107
****
Q: 4, ['b', '551', '5871', '453', '5753', '1125', 'z', 'j', '8191', 'D', '781', '4055']

A: b, 551, 5871, 453, 5753, 1125, z, j
****
Q: 3, ['7683', '5309', 'F', '2201', '2689', '7257', 'g', '7067', 'N', '2593', '5713', '3501', '1861', 'y', 'D']

A:
7683, 5309, F, 2201, 2689, 7257, g, 7067, N, 2593, 5713, 3501
****