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.
1, ['589', 'F', 'G', '9565', 'x', 'b', '8519', '8959', '1471', 'M', 'h', '5307', 'B', 'R', 'T', 'f', 'z', 'n', 'k', 'N', 'B', 'm', '3399', '8149', 'G', '6419', '2107']