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.
--------
Question: 4, ['4951', 'S', '8149', '6325', '7631', 'I', 'Z', '9273', '1193']

Answer: 4951, S, 8149, 6325, 7631


Question: 1, ['h', 'i', '2697', 'h', 'D', '2925', 'u', 'I']

Answer: h, i, 2697, h, D, 2925, u


Question: 12, ['l', 'i', '21', 'x', 'i', 'G', 'o', 'w', '5003', '6999', '4613', '4335', '6643', 'S', '8635', 'D', 'y', 'q', '3537', '9561', '303', '5149', '1265', '7319', 'u', 'g', '1887']

Answer:
l, i, 21, x, i, G, o, w, 5003, 6999, 4613, 4335, 6643, S, 8635