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: 4, ['s', '2277', 'j', 'x', '9099', 'Y', '4843', '1815', '9189', '7767', 'Y', 'N', 'U', '1855', 'z']

A: s, 2277, j, x, 9099, Y, 4843, 1815, 9189, 7767, Y
****
Q: 1, ['6107', '9057', '3107', 'Y', '9471']

A: 6107, 9057, 3107, Y
****
Q: 7, ['2701', 'A', '8149', 'W', '4411', 'H', '1399', 'z', '6915', 't', '2917', 'a', '4171', '9567', '4119', 'Q', 'h', 'p', '849', 'K', '6397', '3911', '8457', 'd', 'L', 'm', 'd']

A:
2701, A, 8149, W, 4411, H, 1399, z, 6915, t, 2917, a, 4171, 9567, 4119, Q, h, p, 849, K
****