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: 7, ['8363', 'm', 'i', '9887', '7645', '815', '9555', '2541', '2947', 'r', '7885', '6389', '3', '6109', '5441', '8731', 'N', 'J', '7977', 'C', '1683', '5875', '1105']

A: 8363, m, i, 9887, 7645, 815, 9555, 2541, 2947, r, 7885, 6389, 3, 6109, 5441, 8731
****
Q: 4, ['4951', 'S', '8149', '6325', '7631', 'I', 'Z', '9273', '1193']

A: 4951, S, 8149, 6325, 7631
****
Q: 2, ['x', 'm', '731', 'H', '1649', 'p', '2039', '985', 'U', 'z', '9271', 'h']

A:
x, m, 731, H, 1649, p, 2039, 985, U, z
****