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: 5, ['7593', 'Y', '3923', '5793', '6977', '4977', 'X', 's', 'Z', '9629', '4277', '3385', 'R']

A: 7593, Y, 3923, 5793, 6977, 4977, X, s
****
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: 9, ['r', 'U', 'T', '9255', 'h', '6779', '9605', '1235', '8943', 'W', 'Y', '8823', 't', 'g', '4303', '8845', '1583', '8263', '7451', 'f', 'X', '5797', '833']

A:
r, U, T, 9255, h, 6779, 9605, 1235, 8943, W, Y, 8823, t, g
****