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.
8, ['4723', 'n', '7205', 'z', '8987', '7777', 'e', '3245', '5907', '1151', 'n', 'n', '6789', 'h', '4791', 'g', '5039', 'x', '1025', 'r', '1291', '5991', 'l', '1999', '3573', '1667', '8297', '3823']