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.

5, ['Y', 'r', '9549', 'A', 'W', '9491', '1261', '2453', '5669', 'd', '9411', '1809', '581', 'O', '1969']
Y, r, 9549, A, W, 9491, 1261, 2453, 5669, d

2, ['5189', '805', 'U', '7527', 'Q', 'J', '4927', '8677', 'Y', '2871', '1193', 'C', 'I', '4667', '8127', '9073', '3075', '6297']
5189, 805, U, 7527, Q, J, 4927, 8677, Y, 2871, 1193, C, I, 4667, 8127, 9073

13, ['Q', '3165', '3711', '4397', 'O', '7951', '8953', 'r', '8263', 'P', '1431', 'T', 'p', '135', '8545', '3749', 'u', '1427', 'C', '161', 'r', 'b', 'H', 'Q', 'C', '7359', '1937', '1943', 's', 'h']

Q, 3165, 3711, 4397, O, 7951, 8953, r, 8263, P, 1431, T, p, 135, 8545, 3749, u