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: 5, ['555', 'x', '7843', 'C', '5791', 'i', '841', '5189', '3321', 'B', '9865', 'r']

Answer: 555, x, 7843, C, 5791, i, 841


Question: 1, ['5173', 'e', 'j']

Answer: 5173, e


Question: 1, ['1109', '2087', 'p', 's', '4823', 'z', 't', 'c']

Answer:
1109, 2087, p, s, 4823, z, t