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, ['X', 'i', '4513', '2451', '4079', '8191', '9915', '8299', '6139', '705', 't', '7117', 'M', '2621', '9617', '3259', '1173', 'E', 'T', 'm', '6179', 'W']
X, i, 4513, 2451, 4079, 8191, 9915, 8299, 6139, 705, t, 7117, M, 2621, 9617, 3259, 1173

13, ['5269', 'f', 'A', 'y', 'b', '587', '5561', 't', '2711', '247', '6127', 'D', 'y', '2341', '2063', '8487', 'K', 'V', 'M', 'N', '7655', 'U', 'R', 'X', 'k', '2053', '5467']
5269, f, A, y, b, 587, 5561, t, 2711, 247, 6127, D, y, 2341

8, ['3267', 'w', 'n', 'H', '2725', 'E', '1939', 'w', '4541', '6909', '3531', 'D', 'W', '1553', 'R', 'v', 'k', '1545', 'M', '5395', 'y', 'c', 'Z', 'i', 'h', 'C', 'f', 'N']

3267, w, n, H, 2725, E, 1939, w, 4541, 6909, 3531, D, W, 1553, R, v, k, 1545, M, 5395