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.
11, ['9787', '803', '7421', 'Y', 'Z', '2697', '7535', '1095', '8655', 'W', 'h', '1315', '8649', '3221', 'm', '3479', '4625', '5877', 'e', '5817', '2655', '1815', 'q', '9407', 'Y', 'p']