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: 7, ['Y', '237', 'u', '6417', '8945', 'B', 'K', 's', '7275', 'o', '8239', 'Z', 'M', '2951', 'y', 'b', '3473', 'f', '6235', '1895']

Answer: Y, 237, u, 6417, 8945, B, K, s, 7275, o, 8239, Z, M


Question: 2, ['p', '2731', '121', 'h']

Answer:
p, 2731