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.
9, ['5295', '9971', '265', 'M', '5201', 'U', '4179', '2393', '1483', '5247', 'w', '1051', '6835', '4949', '7545', 'X', '1045', 'v', 'Z', 'Z', 'I', '4979', '7521', '5357', 'm', 'h', '1603', '129', 'i', '2269']