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.
12, ['X', 'd', 'i', 'H', '9', 'e', 'm', 'f', 'J', '2279', 'r', 'z', '3519', '7621', '6571', '4505', '425', 'X', '203', '5439', 'R', '9915', '3', '3723', '1523', 'y', '9829', '2677']