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]: 5, ['a', 'U', '1091', '6791', '5761', '5235', 'q', 'f', 's', '2023', 'u', 'N', 'H', 'D', '479', 'q']
[EX A]: a, U, 1091, 6791, 5761, 5235, q, f, s, 2023, u

[EX Q]: 4, ['W', 'U', '7989', '7921', '2625', '4897', '1429', '7431', 'v', 'J', 'G', '2459', 'h', 'D', 'O', 'j', '5037', '9775', '7017']
[EX A]: W, U, 7989, 7921, 2625, 4897, 1429, 7431, v, J, G, 2459, h, D, O

[EX Q]: 12, ['Z', '2573', '3413', 'K', '1989', '143', 'u', 'N', 'O', 'C', 'o', 'O', 'U', '9545', '5523', 'u', 'a', '9905', 'x', '311', 'I', '8255', 'b', '8349', '9455', '207', 'T']
[EX A]:
Z, 2573, 3413, K, 1989, 143, u, N, O, C, o, O, U, 9545, 5523