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.

[Q]: 8, ['3873', '4431', '4295', 'W', 'X', 'U', 'X', '1877', 'u', '5755', '9109', '5211', '3037', 'V', 'S', 'c', 'O']
[A]: 3873, 4431, 4295, W, X, U, X, 1877, u

[Q]: 6, ['6761', '7905', '5853', 'a', 'T', '8867', '6233', 'Q', '2069', '7369', '2497', 'r']
[A]: 6761, 7905, 5853, a, T, 8867

[Q]: 7, ['3083', '1927', '1069', 'i', '8405', '9305', '1259', 'b', '6873', '6263', '8847', '4917', 'M', '3315', 'e', '2153', '8373', 'e', '3565', 'Q', '643', 'l', '5063', '6953', 'J', 'h', 'i', '5441']
[A]:
3083, 1927, 1069, i, 8405, 9305, 1259, b, 6873, 6263, 8847, 4917, M, 3315, e, 2153, 8373, e, 3565, Q, 643