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.

4, ['7539', '5355', '5163', '393', 'U', '9923', 'E', 'H', 'A', 'K', 'o', 'N', 'Z', 'c']
7539, 5355, 5163, 393, U, 9923, E, H, A, K

5, ['U', '3021', 's', '2595', 'g', 'q', '3943', 'M', 'X', '9035', 't']
U, 3021, s, 2595, g, q

6, ['7655', '8897', '4825', 'o', '2823', '6549', '6107', '83', '1161', 'R', 'M', 'y', '2835', '637', 'U', 'E', '2565', 'Q', '3145', '3943', '9639', 'D', 'L', '3767', '6871', 'P', '4493', 'n', 'k', 'M']

7655, 8897, 4825, o, 2823, 6549, 6107, 83, 1161, R, M, y, 2835, 637, U, E, 2565, Q, 3145, 3943, 9639, D, L, 3767