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.
9, ['n', '7799', '727', '6257', '5395', '3745', 'l', '2763', 'e', '5013', '5969', 'D', 'w', 'E', 'Z', '6697', 'y', '3127', 'P', 'V', '3177', '1905', '9745', '8437', 'e', 's']