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]: 2, ['K', 'x', 'B', 'L', 'a', 'P', 'w', 'R', '1495', '737', 'v', '4079', '6945', '4801', 'c']
[EX A]: K, x, B, L, a, P, w, R, 1495, 737, v, 4079, 6945

[EX Q]: 4, ['s', 'f', '4839', '1155', '7639', 'w', '2947', 'R', 'h']
[EX A]: s, f, 4839, 1155, 7639

[EX Q]: 9, ['6183', 'P', '5579', '9469', '1767', 'e', '7677', '4059', '917', 'x', '6277', '6041', 'z', '5633', '2303', '6617', 'B', 'y', '1533', '2587', 'u', '7685', '8221']
[EX A]:
6183, P, 5579, 9469, 1767, e, 7677, 4059, 917, x, 6277, 6041, z, 5633