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, ['e', '7531', 'b', '2455', '7829', '7961', 'Y', '883', '7337', 'E', '507', '2101', '3867', 'Q', 'i', '6899', '1187', '3403', 'h', '2229']
[A]: e, 7531, b, 2455, 7829, 7961, Y, 883, 7337, E, 507, 2101

[Q]: 13, ['h', 'm', 'l', '9319', '2491', 'K', 'A', '8771', 'R', '9885', 'X', '2361', '1615', '9081', '8833', '367', 'e', '1515', 'b', '1581', 'E', 'S', '5521', '7891', '6061', 'n']
[A]: h, m, l, 9319, 2491, K, A, 8771, R, 9885, X, 2361, 1615

[Q]: 6, ['y', 'D', '5399', 'O', 'c', '531', 'h', '3965', '2871', '2825', 's', '4511', '8905', 'Y', '1549', 'Q', '4483', '7063', '3609', '7471', 'p', '8539', '4437', 'H', 'y', 'U']
[A]:
y, D, 5399, O, c, 531, h, 3965, 2871, 2825, s, 4511, 8905, Y, 1549, Q, 4483, 7063, 3609, 7471