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, ['845', 'w', 'b', 'M', '8983', '1591', 'n', 'i', '9817', '1397', '5085', 'p', '503', 'o', '953', '3705', 'D']

A: 845, w, b, M, 8983, 1591, n, i, 9817, 1397, 5085, p
****
Q: 12, ['125', 'm', 'Z', 'U', '5187', '1847', '3597', 'x', 'l', '5521', '6473', '3801', 'E', '3577', '6383', '7463', '7343', '6981', 'E', 'p', 'H', '7193', 'K', '4875']

A: 125, m, Z, U, 5187, 1847, 3597, x, l, 5521, 6473, 3801
****
Q: 3, ['m', 'j', 'S', '9109', '5789', 'd', '5465', 'k', '9051', '8449', 'z', 'E', '855', '6201']

A:
m, j, S, 9109, 5789, d, 5465, k, 9051, 8449, z
****