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, ['9827', '4159', '8267', 'B', '609', '2119', '7671', '6383', '6683', 'f', '8495', '9171', '5869', '2415', 'H', '7187', 'j', 'I', 'Y', 's', 'v', 'l', 'D']

A: 9827, 4159, 8267, B, 609, 2119, 7671, 6383, 6683, f, 8495, 9171, 5869, 2415, H, 7187, j, I, Y
****
Q: 5, ['9331', '9975', 'G', 'p', '2841', 'U', 'n', 'f', 'w', 'l']

A: 9331, 9975, G, p, 2841
****
Q: 2, ['8853', '3143', 's', '5243', '2423', '651', '2687', '9953', 't']

A:
8853, 3143, s, 5243, 2423, 651, 2687
****