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.
2, ['3965', '9047', '3145', '7603', 'n', 'e', '8765', '2329', 'J', 'j', '7261', '7391', '9689', '3879', '7991', '7377', 'c', 'L', '3699', '6343', '8687', 'X', 'i', 'i', 'Y']