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.

[EX Q]: 6, ['g', '2043', '6243', '8743', '2557', '8847', '663', 'D', 'M', '6503', 'u', 'W', 's', '3707', '4763', '6937']
[EX A]: g, 2043, 6243, 8743, 2557, 8847, 663, D, M, 6503

[EX Q]: 3, ['M', '3663', '101', 'p', 'T', 'J', 'N', '7915', '5897', 'm', 'g', '3357', 'j', 'S', '7271', 'B', '4625', '7827', 'w', 'B', '8123', '6623']
[EX A]: M, 3663, 101, p, T, J, N, 7915, 5897, m, g, 3357, j, S, 7271, B, 4625, 7827, w

[EX Q]: 2, ['f', '2481', 'T', '7017', '5657', '7319', 'v', '3373', '5903', '7361', '3873']
[EX A]:
f, 2481, T, 7017, 5657, 7319, v, 3373, 5903