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.
14, ['6589', '101', 'B', '7983', '8559', 'b', '9375', '9841', '4699', 'V', '5379', 'X', 'K', '8307', '271', 'd', 'g', '9609', 'J', '8491', 'k', 'e', '3751', '3955', 't', '3799', 'X', 'P', 'n', '5237']