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: 4, ['2877', '4495', 'H', 'g', '1741', '6623', 't', '5345', 'l', 'J', '3691', 'A', '467', '6027', '789', '7345', 'l', 'r', '1637', 'w', 'x', '7823', 'U']

A: 2877, 4495, H, g, 1741, 6623, t, 5345, l, J, 3691, A, 467, 6027, 789, 7345, l, r, 1637
****
Q: 1, ['c', '8843', 'R', '7857', '8439', 'c', 'a', 'S', '75', 'S', '6095', 'S', '4857', 'U', 's', 'T', 'b', '8079', '9635']

A: c, 8843, R, 7857, 8439, c, a, S, 75, S, 6095, S, 4857, U, s, T, b, 8079
****
Q: 3, ['r', '6407', 'F', 'X', '8807', '2735', 'Y', '7645', '9795', 'D', 'y', '8631', 's', '9781', 'h', '3775', 'i', '3075', '5923', '3459']

A:
r, 6407, F, X, 8807, 2735, Y, 7645, 9795, D, y, 8631, s, 9781, h, 3775, i
****