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]: 9, ['X', '2625', 'l', '533', 'j', '265', 'O', 'h', '9031', '9507', '1981', '4301', 'h', 'Z', '3735', 'a', '9359', 's']
[A]: X, 2625, l, 533, j, 265, O, h, 9031


[Q]: 9, ['2975', '9501', '5493', 'T', '3115', 'p', 'V', 'B', 'A', 'a', 'I', '943', 'd', '3095', 'Y', 'y', '99', 'z', '9949', 'c', '3851']
[A]: 2975, 9501, 5493, T, 3115, p, V, B, A, a, I, 943


[Q]: 7, ['u', 'z', 'j', '4533', '4869', '2657', '143', '3775', '8765', 'U', 'q', 'O', 'B', '9221', '7405', '3907', 'H', '433', 'S', '4881', '5861']
[A]:
u, z, j, 4533, 4869, 2657, 143, 3775, 8765, U, q, O, B, 9221