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: 10, ['d', 'c', 'Z', 'b', '4185', 'Y', '3381', 'd', '4167', 'J', '539', 'h', 'Q', '165', '8025', 'M', '6337', 'z', 'k', 'A', 'E', '9729', '7747', '7387', 'S', 'U']

A: d, c, Z, b, 4185, Y, 3381, d, 4167, J, 539, h, Q, 165, 8025, M
****
Q: 1, ['2725', '4871']

A: 2725
****
Q: 10, ['5697', '7693', '2467', 'G', 'a', 'Q', '7179', '2733', '2523', '3973', 'L', 'u', 'x', '2647', '5685', '5193', '2193', 'c', '2985', '5369', 'I', 'J', 'x', '2183', '4709', '9133', '1833', '9457']

A:
5697, 7693, 2467, G, a, Q, 7179, 2733, 2523, 3973, L, u, x, 2647, 5685, 5193, 2193, c
****