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: 4, ['R', 'U', 'W', '403', '8287', 's', '8495', 'x']

A: R, U, W, 403
****
Q: 5, ['l', 'M', '5143', '6301', 'W', 'H', 'D', 'o', '7457', 'o', '5021', 'a', '5621', 'g', 'A', 'Q', 'X', 'X', 'b']

A: l, M, 5143, 6301, W, H, D, o, 7457, o, 5021, a, 5621, g
****
Q: 2, ['2613', '9093', 'p', '6477', '6251', 'x', 'P', 'Z', '6017', '6365', 'p', '3755', 'o', 'g', '1067', '8433', 'b', '9071', '7017', 'A', 'f', '2303', 'r', '2397', '4969']

A:
2613, 9093, p, 6477, 6251, x, P, Z, 6017, 6365, p, 3755, o, g, 1067, 8433, b, 9071, 7017, A, f, 2303, r
****