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, ['6119', '9111', 'D', 'c', '9465', '4749', '5217', '1111', '5109', 'Y', 'T', '5829', '8201', '3793', '3867', 'i', 'a', 'o', '2787', '8195', '2749', 'E', 'J']