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, ['8289', '1383', '343', '2065', 'u', '2709', 'L', 'Z', '2031', 'o', 'Y', '7731', '6737', '1911', 'N', '2545', 'K', '4363', 'F', 'J', '1239', '9361']