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: 14, ['9735', '7407', '2315', '635', '4435', 'I', 'q', '4041', 'Z', '8667', 'x', 'n', 'p', 'h', '1391', '6509', 'u', 'O', '5497', '2601', '6359', 'Z', 'g', 'w', 'g', '2135', 'Z', 'a']

A: 9735, 7407, 2315, 635, 4435, I, q, 4041, Z, 8667, x, n, p, h
****
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, ['H', 'p', '2947', '1845', '5537', '1693']

A:
H, p, 2947, 1845, 5537
****