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: 7, ['O', 'G', '303', 'J', '8545', 'u', '1983', 'u', '425', 't', '8249', 'i', '4727', '6039', 'k', '1927', 'z', '4429', '4131', '8543', '9127', 'J']

Answer: O, G, 303, J, 8545, u, 1983, u, 425, t, 8249, i, 4727, 6039, k


Question: 1, ['2935', 'H', '5139', 'n', 'X', '5999', 'C', '5147', 'J', '293', 'c', 'u', '9859', 'H', 'W', '2171', 'w', '3431', '1515']

Answer: 2935, H, 5139, n, X, 5999, C, 5147, J, 293, c, u, 9859, H, W, 2171, w, 3431


Question: 4, ['2519', '5215', 's', '6991', 'N', 'i', '9323', 'o', '6449', 'z', '8491', '2083', 'o', '3955']

Answer:
2519, 5215, s, 6991, N, i, 9323, o, 6449, z