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]: 1, ['Y', 'j', '7619', 'U', 'd']
[A]: Y, j, 7619, U

[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]: 5, ['3403', '6687', 'c', '4199', 'Q', 'X', 'e', '4419', '5599', 'h', 'W', '2869', '1597', '9815', 'H', 'r', '497', 'u', '1377', '6659', 'P', 'D', '4221', 'D', '9235', 'S', 'K', '4453']
[A]:
3403, 6687, c, 4199, Q, X, e, 4419, 5599, h, W, 2869, 1597, 9815, H, r, 497, u, 1377, 6659, P, D, 4221