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, ['W', 'U', '7989', '7921', '2625', '4897', '1429', '7431', 'v', 'J', 'G', '2459', 'h', 'D', 'O', 'j', '5037', '9775', '7017']

A: W, U, 7989, 7921, 2625, 4897, 1429, 7431, v, J, G, 2459, h, D, O
****
Q: 3, ['Y', '3499', '2787', 'C', 'U', '4895']

A: Y, 3499, 2787
****
Q: 3, ['S', '6515', '3293', 'z', '6197', '9709', '6401', '3763', 'i', '6675', 's', 'N', 'G', '4353', '3431', 'D', '1577', '9585', '403', '1837', 'e', 'J', '5679']

A:
S, 6515, 3293, z, 6197, 9709, 6401, 3763, i, 6675, s, N, G, 4353, 3431, D, 1577, 9585, 403, 1837
****