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: 5, ['U', '3021', 's', '2595', 'g', 'q', '3943', 'M', 'X', '9035', 't']

A: U, 3021, s, 2595, g, q
****
Q: 2, ['2197', '7093', 'm', '8509', '3271', '2617', '2913', 'A', '2035', '6073', 'c', '9189', '2965', '7323', 'Y', 'c', '4415', 'M', '6147', 'g', '3377', 'D', 'k', '9799', 'A', '9563']

A:
2197, 7093, m, 8509, 3271, 2617, 2913, A, 2035, 6073, c, 9189, 2965, 7323, Y, c, 4415, M, 6147, g, 3377, D, k, 9799
****