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: 11, ['3835', '749', 'Y', '3367', 'h', 'U', 'O', 'o', 'Q', 'o', 'v', '5533', 'c', '1089', 'U', 'R', 'a', '3967', 'h', 's', '8523', 'X', '2009', '6383', 'U', '8921']

A: 3835, 749, Y, 3367, h, U, O, o, Q, o, v, 5533, c, 1089, U
****
Q: 6, ['p', 'z', 'n', '5759', 'i', '6115', '2605', 'i', 'O', '8597', 'G', 'A', 'd', 's', '1271', 'F', '6911']

A: p, z, n, 5759, i, 6115, 2605, i, O, 8597, G
****
Q: 5, ['5829', '9831', 'X', '6589', 'A', '3973', '1559', 'N', '4013', 'z', 'Y', 'N']

A:
5829, 9831, X, 6589, A, 3973, 1559
****