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: 2, ['u', 'Q', '5689', '2415', 'X', 'q', '743']

A: u, Q, 5689, 2415, X
****
Q: 5, ['7043', '7447', 'r', 'u', '2817', '2279', 'O', '3115', '4655', '3245', '3785']

A: 7043, 7447, r, u, 2817, 2279
****
Q: 6, ['z', 'b', '8497', '6121', '9275', '4845', '5997', 'e', '6367', 'T', 'M', '9745', '9819', '6639', '4795', '8241', '201', '5243', '8767', '8575', 'X', '4943', 'o', '2889', 'D', '7249']

A:
z, b, 8497, 6121, 9275, 4845, 5997, e, 6367, T, M, 9745, 9819, 6639, 4795, 8241, 201, 5243, 8767, 8575
****