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]: 6, ['985', '7793', '2875', '4197', 'U', 'z', 'e', 'f', '591', '3747', '8661', 'I', 'u', '9343', '6973', 'K', '6295', '7271', 'g', '3797', '8631', '5711', '503']
[EX A]: 985, 7793, 2875, 4197, U, z, e, f, 591, 3747, 8661, I, u, 9343, 6973, K, 6295

[EX Q]: 2, ['1565', '3841', 'S', '2933', '5769', '1295', '9409', 'w', 'L', '5279', '1929', 'S', 'i', '7213', 't', 'p', '9797', '2915']
[EX A]:
1565, 3841, S, 2933, 5769, 1295, 9409, w, L, 5279, 1929, S, i, 7213, t, p