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.
6, ['6591', 'W', 'm', 'k', '4045', 'V', 'X', 'L', '2297', 'e', '2449', '2531', '7031', '6757', '7151', '8625', '6777', '4633', '9451', 'u', '4741', '8753', '5107', 'a', 'C', 'l', '6789']