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.

5, ['555', 'x', '7843', 'C', '5791', 'i', '841', '5189', '3321', 'B', '9865', 'r']
555, x, 7843, C, 5791, i, 841

2, ['9977', '1897', '9039', 'W', '3709']
9977, 1897, 9039

1, ['v', '6141', '8803', 'm', 'K', '3103', 't', '5827', '8175', 'L', 'F']

v, 6141, 8803, m, K, 3103, t, 5827, 8175, L