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.
7, ['9519', '4081', 'q', 'Y', '3815', '4979', '2831', 'j', '1885', 'o', '6675', '2641', '4845', 'F', '6823', 'D', 'F', '5165', '3689', '9909', 'R', 'r', 'e', '8487', '3645']