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, ['231', 'U', '9227', '5663', 'a', 'F', 'Y', 'n', 'i', 'N', 'D', 'u', 'I', 'g', '1759', '6709', '9711', 'z', 'M', '6325', '4901', '3913', '1679', 'z', 'h', '7103', 'R', '9963', 'D', '5259']

A: 231, U, 9227, 5663, a, F, Y, n, i, N, D, u, I, g, 1759, 6709, 9711, z, M, 6325, 4901, 3913, 1679, z, h, 7103, R, 9963
****
Q: 1, ['F', 'p', '9513', '4451', 'M', 'H', 'u', 'c', '9279']

A: F, p, 9513, 4451, M, H, u, c
****
Q: 1, ['2799', '7521', '9795', '1381', 'b', 'b', '9981', 'L']

A:
2799, 7521, 9795, 1381, b, b, 9981
****