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, ['3057', '7783', 'o', 'M', '9309', 'V', '1425', 'X', 'f', 'y', 'q', '2831', 'y', 'A', '5567', 'c', '8645', 'S', 'd']

A: 3057, 7783, o, M, 9309, V, 1425, X, f, y, q, 2831, y, A, 5567
****
Q: 2, ['z', 'C', '1787', 'P', 'i', 'M', 'V', '7833', 'i', '189', '6017', 'I']

A: z, C, 1787, P, i, M, V, 7833, i, 189
****
Q: 2, ['j', 'I', '8499', '2003', 'u', '7153', 'q', 'P', 'v', '205', '43', '5567', 'a', 'S', '7811', 'o', '1415', '7323', 'I', 'o', '1949']

A:
j, I, 8499, 2003, u, 7153, q, P, v, 205, 43, 5567, a, S, 7811, o, 1415, 7323, I
****