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: 6, ['7151', 'S', '4193', '6261', 'H', '4623', '1455', 't', '1421', 'e', '4227', '4719', 'g', 'V', 'Z', 't', 'z', '5603', '5745']

Answer: 7151, S, 4193, 6261, H, 4623, 1455, t, 1421, e, 4227, 4719, g

Question: 8, ['3863', '9427', '8093', 'g', '7711', 'T', 'h', 'i', 'a', '4435', 'V', '9541', '1355', '3987', 'w', 'r', '9843', '2299', 'N', '4891', 'w', '1907', '9111', '6405', 'l', '5311', '3407']

Answer: 3863, 9427, 8093, g, 7711, T, h, i, a, 4435, V, 9541, 1355, 3987, w, r, 9843, 2299, N

Question: 5, ['1923', '3485', '2669', '8277', 'K', 'W', 'Z', '8339', 'd', 'C', 'I', 'G', 'j', 'w', '5753', '283', '333', 'G', '6883', '5487', 'G', '7535', 'q', '967', 'E', '1345', 'u', 'v', '33', '5097']

Answer:
1923, 3485, 2669, 8277, K, W, Z, 8339, d, C, I, G, j, w, 5753, 283, 333, G, 6883, 5487, G, 7535, q, 967, E