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.

[EX Q]: 5, ['l', '1473', '6251', '1565', '4141', '1871', 's', 'v', 'y', 'd', '2539', '1435', '6661', '1285', '6317', '9047', '2543', 'u', '3483', 'y', '8777', 'y', '4333', 'C']
[EX A]: l, 1473, 6251, 1565, 4141, 1871, s, v, y, d, 2539, 1435, 6661, 1285, 6317, 9047, 2543, u, 3483

[EX Q]: 10, ['l', '2397', '5303', '7039', '23', 'L', '5851', '8793', '8045', '9677', '4237', '7223', 'm', '4389', '2653', '4567', '2453', 'W', 'c', 'J', '1149', 'X', '1137', '9719']
[EX A]: l, 2397, 5303, 7039, 23, L, 5851, 8793, 8045, 9677, 4237, 7223, m, 4389

[EX Q]: 2, ['2111', 'f', '6687', '5517', '5813', '3571', 'U', '5851', 'F', 'q', '3047', 'd', 'p', 'O', '6477', '4411', '7061', 'a', 'D', '2429', '8021', 'O', 'z']
[EX A]:
2111, f, 6687, 5517, 5813, 3571, U, 5851, F, q, 3047, d, p, O, 6477, 4411, 7061, a, D, 2429, 8021