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.
3, ['Z', 'K', 'F', 'F', '7763', 'J', '3123', '5243', 'V', 'L', '5523', 'J', '8665', 'm', '9327', '2717', 'F', 'q', 'K', 'l', '3611', 'r', 'W', 'R', 'q', 'q']