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, ['X', '2485', 'g', '1987', 'P', '8143', 'h', 'T', 'H', '9641', 'X', '7059', '7715', 'N', '3303', '997', '6771', 'p', 'P', 'Q', 'Y', '7857', 'z', '7437', '7717', 'l', '9149', 'l', '6293']