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, ['v', '371', '1799', 'E', '7605', 'k', '6133', '2871', 's', '9981', 'E']

A: v, 371, 1799, E, 7605, k
****
Q: 7, ['1911', '3107', 'A', 'k', '1887', 'M', '1467', 'd', '8029', 'q', '7791', '115', 'g', '4385', 'q', 'f', '7827', '5555', 'R', 'o', '2339', 'Q', 'f', '2777', 'z']

A: 1911, 3107, A, k, 1887, M, 1467, d, 8029, q, 7791, 115, g, 4385, q, f, 7827, 5555
****
Q: 15, ['2201', '7707', '9847', '6607', 'V', 'B', '3965', 'O', 'O', 'D', '9565', 'n', 'p', 'U', 'v', 'v', 'i', '8991', 'R', 'Z', 'r', 'j', '3113', 'x', 'u', 'h', '287', '3189', '719', '2307']

A:
2201, 7707, 9847, 6607, V, B, 3965, O, O, D, 9565, n, p, U, v
****