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: 3, ['9869', 'k', '3023', '4437', 'h', '877', 'y']

A: 9869, k, 3023, 4437
****
Q: 1, ['9579', 'A', 'z', '2039', 'a', 'E', 'v', 'n', 'H', 'D', '1505', '8767', 'T', '1271', '3807', '5677', '8119', '4973', 'k', '3567']

A: 9579, A, z, 2039, a, E, v, n, H, D, 1505, 8767, T, 1271, 3807, 5677, 8119, 4973, k
****
Q: 1, ['W', 'R', '9067', '5237', '5601']

A:
W, R, 9067, 5237
****