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: 10, ['d', 'c', 'Z', 'b', '4185', 'Y', '3381', 'd', '4167', 'J', '539', 'h', 'Q', '165', '8025', 'M', '6337', 'z', 'k', 'A', 'E', '9729', '7747', '7387', 'S', 'U']

A: d, c, Z, b, 4185, Y, 3381, d, 4167, J, 539, h, Q, 165, 8025, M
****
Q: 11, ['7021', 'w', 'I', '2123', '5935', 'y', 'l', '2351', '3207', '9613', '963', '8925', '9673', 'X', 'z', 'X', 'K', 'w', '2433', 'O', '1495', 'Z', '957', 'R', 'l', '8745', '5553', 'R']

A: 7021, w, I, 2123, 5935, y, l, 2351, 3207, 9613, 963, 8925, 9673, X, z, X, K
****
Q: 1, ['5163', 'f', 'n', 'j', '5299', 't', 'H', '423', 'g', '6453', 'T', 'b', 'S', 'A', '4511', '9781', 'Q', 'o', '2285', '7735', 'K']

A:
5163, f, n, j, 5299, t, H, 423, g, 6453, T, b, S, A, 4511, 9781, Q, o, 2285, 7735
****