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]: 4, ['I', '2991', '9273', '9003', 'O', '8771', 'O', '2429']
[EX A]: I, 2991, 9273, 9003

[EX Q]: 8, ['5113', 'k', 'J', 'f', 'E', 'v', 'd', 'g', 'c', '6189', 'x', '2265', '4145', '1355', '5197', 'K', '1497', 'O', '7823']
[EX A]: 5113, k, J, f, E, v, d, g, c, 6189, x

[EX Q]: 5, ['V', 'T', 'c', 'H', 'Z', '2785', 'i', 'A', '2797', 'R']
[EX A]:
V, T, c, H, Z