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: 1, ['5173', 'e', 'j']

A: 5173, e
****
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: 10, ['C', 's', '8307', 'K', '6915', 'F', 's', '6633', 'M', '4037', '5407', 'I', 'q', '7605', '6401', 'G', '4015', '737', 'e', 'y', 'R', 'l']

A:
C, s, 8307, K, 6915, F, s, 6633, M, 4037, 5407, I
****