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, ['8659', '8231', 'L', '6253', '251', 'y', 'H', '713', '9773', '2547', '9539', '4595', 'Z', '8287', 'H', 'm', 'r', 'd', '3367', 'U', 'Y', '4083', '9347', 'V', '9043', '2959']