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, ['4597', 'e', '2119', '4181', 'm', '3979', 'Q', '7847', 'J', 'Y', 'O', '4571', '9707', 'd', 'G', 'L', '1217']