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: 5, ['h', '5371', 'Y', 'E', '4733', '9039', 'w', 'p', '1229', '4813', '2273', 'q', '1831']

A: h, 5371, Y, E, 4733, 9039, w, p
****
Q: 4, ['1863', '8975', '8579', '4121', '605', 'm', '4059', 'C', 'j', '6327']

A: 1863, 8975, 8579, 4121, 605, m
****
Q: 9, ['8489', 'w', '8869', 't', '5997', '8863', 'e', '6229', 'b', '83', 'l', '7271', '4205', 'G', '3375', '7663', 'w', 'N', '493', '6629', 'o', 'Q', '3543', '2725', 'G', '5207', 'a']

A:
8489, w, 8869, t, 5997, 8863, e, 6229, b, 83, l, 7271, 4205, G, 3375, 7663, w, N
****